don't join suspended channels on event_invite
authorpk910 <philipp@zoelle1.de>
Tue, 4 Oct 2011 16:23:32 +0000 (18:23 +0200)
committerpk910 <philipp@zoelle1.de>
Tue, 4 Oct 2011 16:23:32 +0000 (18:23 +0200)
src/event_neonserv_invite.c

index 473bc8be9ceff1caf76d467152a52823a695c5c3..8e5baeffc336e7a6c7cb2a9fdcfb21960b6e9456 100644 (file)
@@ -24,6 +24,10 @@ static void neonserv_event_invite(struct ClientSocket *client, struct UserNode *
         reply(client, user, "NS_INVITE_FAIL", channel, client->user->nick);
         return;
     }
+    if(!strcmp(row[2], "1")) {
+        reply(client, user, "MODCMD_CHAN_SUSPENDED");
+        return;
+    }
     int botid = atoi(row[0]);
     struct ClientSocket *bot;
     for(bot = getBots(SOCKET_FLAG_READY, NULL); bot; bot = getBots(SOCKET_FLAG_READY, bot)) {