From: wiebe Date: Tue, 23 Mar 2010 21:17:31 +0000 (+0100) Subject: sethostoldcode: removed some old code in set_hostmask in s_user.c X-Git-Url: https://jfr.im/git/irc/quakenet/snircd-patchqueue.git/commitdiff_plain/14fd0d1d3d0f84c323537b486f66b6667237b1c7 sethostoldcode: removed some old code in set_hostmask in s_user.c --- diff --git a/series b/series index 98df304..cdbce11 100644 --- a/series +++ b/series @@ -1,4 +1,5 @@ realusernamesethost.patch +sethostoldcode.patch cprivmsgerracconly.patch badchanzombie.patch badchanlocalkick.patch diff --git a/sethostoldcode.patch b/sethostoldcode.patch new file mode 100644 index 0000000..6c18212 --- /dev/null +++ b/sethostoldcode.patch @@ -0,0 +1,34 @@ +removed some old code in set_hostmask in s_user.c + +diff -r ad23b9b1c0b6 ircd/s_user.c +--- a/ircd/s_user.c Tue Mar 23 22:12:51 2010 +0100 ++++ b/ircd/s_user.c Tue Mar 23 22:15:10 2010 +0100 +@@ -1146,28 +1146,6 @@ + send_reply(cptr, RPL_HOSTHIDDEN, hiddenhost); + } + +-#if 0 +- /* Code copied from hide_hostmask(). This is the old (pre-delayedjoin) +- * version. Switch this in if you're not using the delayed join patch. */ +- /* +- * Go through all channels the client was on, rejoin him +- * and set the modes, if any +- */ +- for (chan = cli_user(cptr)->channel; chan; chan = chan->next_channel) { +- if (IsZombie(chan)) +- continue; +- sendcmdto_channel_butserv_butone(cptr, CMD_JOIN, chan->channel, cptr, +- "%H", chan->channel); +- if (IsChanOp(chan) && HasVoice(chan)) { +- sendcmdto_channel_butserv_butone(&me, CMD_MODE, chan->channel, cptr, +- "%H +ov %C %C", chan->channel, cptr, cptr); +- } else if (IsChanOp(chan) || HasVoice(chan)) { +- sendcmdto_channel_butserv_butone(&me, CMD_MODE, chan->channel, cptr, +- "%H +%c %C", chan->channel, IsChanOp(chan) ? 'o' : 'v', cptr); +- } +- } +-#endif +- + /* + * Go through all channels the client was on, rejoin him + * and set the modes, if any