projects
/
ircu2.10.12-pk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f4e7a4
)
fixed double join bug in m_relay.c: users could join a channel having +a set multiple...
author
pk910
<philipp@zoelle1.de>
Wed, 4 Jul 2012 13:07:41 +0000
(15:07 +0200)
committer
pk910
<philipp@zoelle1.de>
Wed, 4 Jul 2012 13:07:41 +0000
(15:07 +0200)
ircd/m_relay.c
patch
|
blob
|
history
diff --git
a/ircd/m_relay.c
b/ircd/m_relay.c
index 96676cd33fab8d3fb4d0c25b6607e248ee8ee25f..3f0dcf6699cd8a37ac5c6ddf89b6e8f64c439ad1 100644
(file)
--- a/
ircd/m_relay.c
+++ b/
ircd/m_relay.c
@@
-65,6
+65,8
@@
static void mode_a_join(struct Client* cptr, char *channel, int flags) {
}
} else {
struct JoinBuf join;
+ if(find_member_link(chptr, cptr))
+ return; //we have already joined this channel
joinbuf_init(&join, cptr, cptr, JOINBUF_TYPE_JOIN, 0, 0);
joinbuf_join(&join, chptr, flags);
del_invite(cptr, chptr);