X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Fmodules%2Fglobal.mod%2Fcmd_global_extscript.c;h=74cde9d2f646c415cc11e226b71b72f671ade84f;hb=ee39770362f69ced5b52104b622582e882af0b77;hp=b0a15ea11b4c13c48f911db2df5caa6c467c86c5;hpb=2a23dc8a34a8760bce197be5ff9a44221f537383;p=NeonServV5.git diff --git a/src/modules/global.mod/cmd_global_extscript.c b/src/modules/global.mod/cmd_global_extscript.c index b0a15ea..74cde9d 100644 --- a/src/modules/global.mod/cmd_global_extscript.c +++ b/src/modules/global.mod/cmd_global_extscript.c @@ -1,4 +1,4 @@ -/* cmd_global_extscript.c - NeonServ v5.3 +/* cmd_global_extscript.c - NeonServ v5.6 * Copyright (C) 2011-2012 Philipp Kreil (pk910) * * This program is free software: you can redistribute it and/or modify @@ -56,7 +56,7 @@ CMD_BIND(global_cmd_extscript) { row = mysql_fetch_row(res); if(!row || !strcmp(row[0], "0")) { //disabled - reply(getTextBot(), user, "NS_FUN_DISABLED", chan->name); + reply(textclient, user, "NS_FUN_DISABLED", chan->name); return; } else if(!strcmp(row[0], "2")) answere_channel = 1; @@ -126,11 +126,11 @@ CMD_BIND(global_cmd_extscript) { struct global_cmd_extscript_cache *cache = malloc(sizeof(*cache)); if (!cache) { - perror("malloc() failed"); + printf_log("global", LOG_ERROR, "%s:%d malloc() failed", __FILE__, __LINE__); return; } cache->client = client; - cache->textclient = getTextBot(); + cache->textclient = textclient; cache->event = event; cache->user = user; cache->chan = chan;