]> jfr.im git - irc/quakenet/snircd-patchqueue.git/blame - sethostoldcode.patch
whoisparanoid: added description in patch
[irc/quakenet/snircd-patchqueue.git] / sethostoldcode.patch
CommitLineData
14fd0d1d 1removed some old code in set_hostmask in s_user.c
2
3diff -r ad23b9b1c0b6 ircd/s_user.c
4--- a/ircd/s_user.c Tue Mar 23 22:12:51 2010 +0100
5+++ b/ircd/s_user.c Tue Mar 23 22:15:10 2010 +0100
6@@ -1146,28 +1146,6 @@
7 send_reply(cptr, RPL_HOSTHIDDEN, hiddenhost);
8 }
9
10-#if 0
11- /* Code copied from hide_hostmask(). This is the old (pre-delayedjoin)
12- * version. Switch this in if you're not using the delayed join patch. */
13- /*
14- * Go through all channels the client was on, rejoin him
15- * and set the modes, if any
16- */
17- for (chan = cli_user(cptr)->channel; chan; chan = chan->next_channel) {
18- if (IsZombie(chan))
19- continue;
20- sendcmdto_channel_butserv_butone(cptr, CMD_JOIN, chan->channel, cptr,
21- "%H", chan->channel);
22- if (IsChanOp(chan) && HasVoice(chan)) {
23- sendcmdto_channel_butserv_butone(&me, CMD_MODE, chan->channel, cptr,
24- "%H +ov %C %C", chan->channel, cptr, cptr);
25- } else if (IsChanOp(chan) || HasVoice(chan)) {
26- sendcmdto_channel_butserv_butone(&me, CMD_MODE, chan->channel, cptr,
27- "%H +%c %C", chan->channel, IsChanOp(chan) ? 'o' : 'v', cptr);
28- }
29- }
30-#endif
31-
32 /*
33 * Go through all channels the client was on, rejoin him
34 * and set the modes, if any