X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Fmodules%2Fglobal.mod%2Fcmd_global_command.c;h=81beee95479d2872c52f7d502530dcd2ac7162a9;hb=c7ddc504390c0e591b2b6296800f2bd401c1918e;hp=f47902d12a33eebdd00464e1009c08233b36aee8;hpb=689da1db7e2517c187ce76c6c553e20d630a7f36;p=NeonServV5.git diff --git a/src/modules/global.mod/cmd_global_command.c b/src/modules/global.mod/cmd_global_command.c index f47902d..81beee9 100644 --- a/src/modules/global.mod/cmd_global_command.c +++ b/src/modules/global.mod/cmd_global_command.c @@ -1,4 +1,4 @@ -/* cmd_global_command.c - NeonServ v5.4 +/* cmd_global_command.c - NeonServ v5.6 * Copyright (C) 2011-2012 Philipp Kreil (pk910) * * This program is free software: you can redistribute it and/or modify @@ -29,7 +29,7 @@ CMD_BIND(global_cmd_command) { MYSQL_ROW row; struct cmd_binding *cbind = find_botwise_cmd_binding(client->botid, client->clientid, argv[0]); if (!cbind) { - reply(getTextBot(), user, "NS_UNBIND_NOT_FOUND", argv[0]); + reply(textclient, user, "NS_UNBIND_NOT_FOUND", argv[0]); return; } ident = argv[0]; @@ -41,9 +41,9 @@ CMD_BIND(global_cmd_command) { } } else parameters[0] = '\0'; - reply(getTextBot(), user, "NS_COMMAND_BINDING", cbind->cmd, cbind->func->name, parameters); + reply(textclient, user, "NS_COMMAND_BINDING", cbind->cmd, cbind->func->name, parameters); if(chan) - reply(getTextBot(), user, "NS_COMMAND_ACCESS", global_cmd_command_chanaccess(cbind, chan), global_cmd_command_operaccess(cbind)); + reply(textclient, user, "NS_COMMAND_ACCESS", global_cmd_command_chanaccess(cbind, chan), global_cmd_command_operaccess(cbind)); printf_mysql_query("SELECT `user_lang` FROM `users` WHERE `user_user` = '%s'", escape_string(user->auth)); res = mysql_use(); char *lang; @@ -80,7 +80,7 @@ CMD_BIND(global_cmd_command) { case '\n': if(sendBufPos) { sendBuf[sendBufPos] = '\0'; - reply(getTextBot(), user, "%s", sendBuf); + reply(textclient, user, "%s", sendBuf); sendBufPos = 0; } break; @@ -115,7 +115,7 @@ CMD_BIND(global_cmd_command) { } if(sendBufPos) { sendBuf[sendBufPos] = '\0'; - reply(getTextBot(), user, "%s", sendBuf); + reply(textclient, user, "%s", sendBuf); sendBufPos = 0; } }