fixed bot_HeonHelp.c compilation error
authorpk910 <philipp@zoelle1.de>
Mon, 26 Nov 2012 13:25:32 +0000 (14:25 +0100)
committerpk910 <philipp@zoelle1.de>
Mon, 26 Nov 2012 13:25:32 +0000 (14:25 +0100)
src/modules/NeonHelp.mod/bot_NeonHelp.c

index 5a6abbf..5d4aecb 100644 (file)
@@ -207,10 +207,10 @@ static void neonhelp_event_privmsg_async(struct ClientSocket *client, struct Use
     sprintf(setting, "modules.%s.need_auth", get_module_name(module_id));
     if(get_int_field(setting) && !(user->flags & USERFLAG_ISAUTHED)) {
         sprintf(setting, "modules.%s.need_auth_message", get_module_name(module_id));
-        char *message;
-        if(!(message = get_string_field(setting)))
-            message = get_language_string(user, "MODCMD_AUTH_REQUIRED");
-        reply(client, user, "%s", message);
+        char *reply_message;
+        if(!(reply_message = get_string_field(setting)))
+            reply_message = get_language_string(user, "MODCMD_AUTH_REQUIRED");
+        reply(client, user, "%s", reply_message);
         return;
     }
     printf_mysql_query("SELECT `helpserv_support`, `helpserv_public`, `helpserv_intern`, `helpserv_intern_announce` FROM `helpserv_settings` WHERE `helpserv_botid` = '%d'", client->clientid);