commit - 2f8877ded4f0831a2f6033c589fcd36d9cecd0ba
commit + 77f68b4fd140404848e203a6634ecd472294723f
blob - 52ba0930caac5c9ab89f189dd684fe65e7976529
blob + 196b5477487cebdfa0c073277a1ff81115a7d798
--- src/ngircd/irc-channel.c
+++ src/ngircd/irc-channel.c
/* Local client? */
if (Client_Type(Client) == CLIENT_USER) {
+ if (chan) {
+ /* Already existing channel: already member? */
+ if (Channel_IsMemberOf(chan, Client))
+ goto join_next;
+ }
+
/* Test if the user has reached the channel limit */
if ((Conf_MaxJoins > 0) &&
(Channel_CountForUser(Client) >= Conf_MaxJoins))