commit a71abfef4b82aace4989db6a4ed3c94d1266b287 from: Alexander Barton date: Wed Dec 28 13:46:17 2011 UTC Don't stop mode handling on unknown modes; skip it Unknown user and channel modes no longer stop the mode parser, but are simply ignored. Therefore modes after the unknown one are now handled. This is how ircd2.10/ircd2.11/ircd-seven behave, at least. Reported by Cahata -- thanks! commit - 8a8e8a3a23576ccdf06aec7d0a2e6a0d8584a9d8 commit + a71abfef4b82aace4989db6a4ed3c94d1266b287 blob - ba44a3ba286f1e592058b2fced15e262183c747d blob + d8329b1655e2a5f66b88277dd5a0274d86b09ab7 --- src/ngircd/irc-mode.c +++ src/ngircd/irc-mode.c @@ -253,7 +253,6 @@ Client_Mode( CLIENT *Client, REQUEST *Req, CLIENT *Ori set ? '+' : '-', *mode_ptr); x[0] = '\0'; - goto client_exit; } else { Log(LOG_DEBUG, "Handling unknown mode \"%c%c\" from \"%s\" for \"%s\" ...", @@ -278,7 +277,6 @@ Client_Mode( CLIENT *Client, REQUEST *Req, CLIENT *Ori strlcat(the_modes, x, sizeof(the_modes)); } } -client_exit: /* Are there changed modes? */ if (the_modes[1]) { @@ -671,7 +669,6 @@ Channel_Mode(CLIENT *Client, REQUEST *Req, CLIENT *Ori Client_ID(Origin), set ? '+' : '-', *mode_ptr); x[0] = '\0'; - goto chan_exit; } else { Log(LOG_DEBUG, "Handling unknown mode \"%c%c\" from \"%s\" on %s ...",