Another year is about to end... So we have to update these damn copyright information :P
[NeonServV5.git] / src / event_neonserv_invite.c
index 473bc8be9ceff1caf76d467152a52823a695c5c3..2b534297a6be2bac6561c36cec5498118a22ac02 100644 (file)
@@ -1,5 +1,5 @@
-/* event_neonserv_invite.c - NeonServ v5.0
- * Copyright (C) 2011  Philipp Kreil (pk910)
+/* event_neonserv_invite.c - NeonServ v5.3
+ * Copyright (C) 2011-2012  Philipp Kreil (pk910)
  * 
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -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)) {