we should show the new value for dynlimit & nodelete - not the old one
authorpk910 <philipp@zoelle1.de>
Sat, 17 Sep 2011 19:27:46 +0000 (21:27 +0200)
committerpk910 <philipp@zoelle1.de>
Sat, 17 Sep 2011 19:27:46 +0000 (21:27 +0200)
cmd_neonserv_set.c

index 7013d44f429ca888fe376eddc4d16c1173671ed2..4c8e87a105c32e5920d2d284468516130f033163 100644 (file)
@@ -376,6 +376,7 @@ static char* neonserv_cmd_set_dynlimit(struct ClientSocket *client, struct UserN
             putsock(client, "MODE %s +l %d", chan->name, (chan->usercount + atoi(argument)));
         else if(isModeSet(chan->modes, 'l'))
             putsock(client, "MODE %s -l", chan->name);
+        value = argument;
         logEvent(event);
     }
     if(setting) {
@@ -410,6 +411,7 @@ static char* neonserv_cmd_set_nodelete(struct ClientSocket *client, struct UserN
         }
         printf_mysql_query("UPDATE `channels` SET `channel_nodelete` = '%s' WHERE `channel_id` = '%d'", escape_string(argument), chan->channel_id);
         event->flags |= CMDFLAG_OPLOG;
+        value = argument;
         logEvent(event);
     }
     if(setting) {