X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Fmodcmd.c;h=8b9c72c4573ab60000075d2e6a14e20df36861f9;hb=5eee43a7cfa37d5dd8d8a612a94de09a048b30c0;hp=bfefb4bdca33f4c82a320dfc029806c3fb32fb54;hpb=b9f6cb8dbf93da79626a34f3d090db35d16b60c0;p=NeonServV5.git diff --git a/src/modcmd.c b/src/modcmd.c index bfefb4b..8b9c72c 100644 --- a/src/modcmd.c +++ b/src/modcmd.c @@ -153,6 +153,11 @@ static void handle_command(struct ClientSocket *client, struct UserNode *user, s struct cmd_binding *cbind; for(cbind = cmd_binds[bind_index]; cbind; cbind = cbind->next) { if(cbind->botid == client->botid && stricmp(cbind->cmd, message) == 0) { + if((cbind->flags & CMDFLAG_FUNCMD)) { + if(!sent_chan) + break; + chan = sent_chan; + } //get a text bot tmp_text_client = get_prefered_bot(client->botid); //parse the arguments... @@ -768,7 +773,7 @@ void bind_unbound_required_functions(int botid) { } } -void register_bot_alias(int botid, char *alias) { +void register_command_alias(int botid, char *alias) { struct cmd_bot_alias *botalias; for(botalias = bot_aliases; botalias; botalias = botalias->next) { if(!stricmp(botalias->alias, alias))