X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Fmodcmd.c;h=0bfe56dd3ce951e534d8296f75d9e050db43e6c8;hb=902ebfe5551be2daa3edf8141bcee91f62c0a5e0;hp=7ba0b939d6cae97eba0645fade114475474accfd;hpb=706e48b1e666054030c491d864f740071e390038;p=NeonServV5.git diff --git a/src/modcmd.c b/src/modcmd.c index 7ba0b93..0bfe56d 100644 --- a/src/modcmd.c +++ b/src/modcmd.c @@ -369,7 +369,7 @@ static void handle_command(struct ClientSocket *client, struct UserNode *user, s data->args_buffer = args_buffer; data->cbind = cbind; data->textclient = tmp_text_client; - get_userauth(user, command_checked_auth, data); + get_userauth(user, 0, command_checked_auth, data); return; } else handle_command_async(client, user, chan, sent_chan, cbind, argv, argc); @@ -827,10 +827,10 @@ struct ClientSocket *getTextBot() { void init_modcmd() { cmd_binds = calloc(27, sizeof(*cmd_binds)); - bind_chanmsg(got_chanmsg); - bind_privmsg(got_privmsg); + bind_chanmsg(got_chanmsg, 0); + bind_privmsg(got_privmsg, 0); register_default_language_table(msgtab); - register_command(0, "linker", modcmd_linker, 0, 0, 0, 0); //fake command for subcommands + register_command(0, "linker", 0, modcmd_linker, 0, 0, 0, 0); //fake command for subcommands } void free_modcmd() {