MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, write to the Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include "module.h"
subcmd = g_strconcat("command ", newcmd, NULL);
- g_strdown(subcmd);
+ ascii_strdown(subcmd);
if (!signal_emit(subcmd, 3, args, server, item)) {
defcmd = g_strdup_printf("default command %s", cmd);
if (!signal_emit(defcmd, 3, data, server, item)) {
oldopt = optlist_find(list, name);
if (oldopt != NULL) {
- /* already specified - overwrite old defination */
+ /* already specified - overwrite old definition */
g_free(oldopt->data);
oldopt->data = g_strdup(*tmp);
} else {
char *option, *arg, **optlist;
int pos;
- /* get option definations */
+ /* get option definitions */
rec = cmd == NULL ? NULL : command_find(cmd);
optlist = rec == NULL ? NULL : rec->options;
if (option == NULL)
break;
- if (*optlist[pos] == '@' && !i_isdigit(**data))
+ if (*optlist[pos] == '@' && !is_numeric(*data, ' '))
break; /* expected a numeric argument */
/* save the argument */
}
cmd = g_strconcat("command ", newcmd, NULL);
- g_strdown(cmd);
+ ascii_strdown(cmd);
oldcmd = current_command;
current_command = cmd+8;
return;
}
- /* same cmdchar twice ignores aliases ignores aliases */
+ /* same cmdchar twice ignores aliases */
line++;
if (*line == *cmdchar) {
line++;
static void cmd_eval(const char *data, SERVER_REC *server, void *item)
{
g_return_if_fail(data != NULL);
- if (eval_recursion_depth > 100)
+ if (eval_recursion_depth > 100)
cmd_return_error(CMDERR_EVAL_MAX_RECURSE);
-
+
eval_recursion_depth++;
eval_special_string(data, "", server, item);
eval_recursion_depth--;