projects
/
NeonServV5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84a1a92
)
don't join suspended channels on event_invite
author
pk910
<philipp@zoelle1.de>
Tue, 4 Oct 2011 16:23:32 +0000
(18:23 +0200)
committer
pk910
<philipp@zoelle1.de>
Tue, 4 Oct 2011 16:23:32 +0000
(18:23 +0200)
src/event_neonserv_invite.c
patch
|
blob
|
history
diff --git
a/src/event_neonserv_invite.c
b/src/event_neonserv_invite.c
index 473bc8be9ceff1caf76d467152a52823a695c5c3..8e5baeffc336e7a6c7cb2a9fdcfb21960b6e9456 100644
(file)
--- a/
src/event_neonserv_invite.c
+++ b/
src/event_neonserv_invite.c
@@
-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)) {