src/hash.c: Move irc_join() before callback handling for uniformity with other servers.
authorMichael Poole <mdpoole@troilus.org>
Thu, 20 Mar 2008 03:42:20 +0000 (23:42 -0400)
committerMichael Poole <mdpoole@troilus.org>
Thu, 20 Mar 2008 03:42:20 +0000 (23:42 -0400)
src/hash.c

index 4fa1e913f11e93826aaddf309516464bf8b011a9..c5aa49e0655b65c3c7f0c4b7ef724f3853146226 100644 (file)
@@ -498,6 +498,10 @@ AddChannelUser(struct userNode *user, struct chanNode* channel)
             && !(channel->modes & MODE_APASS))
             mNode->modes |= MODE_CHANOP;
 
+        if (IsLocal(user)) {
+            irc_join(user, channel);
+        }
+
         for (n=0; n<jf_used; n++) {
             /* Callbacks return true if they kick or kill the user,
              * and we can continue without removing mNode. */
@@ -505,9 +509,6 @@ AddChannelUser(struct userNode *user, struct chanNode* channel)
                 return NULL;
         }
 
-        if (IsLocal(user))
-            irc_join(user, channel);
-
         return mNode;
 }