]> jfr.im git - irc/quakenet/snircd-patchqueue.git/blame - noticepluschan.patch
whonoidle: hide idle time of users with mode +I in non-HIS setup in WHO
[irc/quakenet/snircd-patchqueue.git] / noticepluschan.patch
CommitLineData
fcdbfbc2 1Since support for +channels (modeless channels) was pulled from
2ircu a while ago, and thus they are not advertised to clients etc.
3
4It should be safe to allow /notice +#channel (calls wallvoices)
5just like /notice @#channel works (calls wallchops).
6
7diff -r c3782eba48b9 ircd/m_notice.c
8--- a/ircd/m_notice.c Wed Jan 21 23:46:00 2009 +0100
9+++ b/ircd/m_notice.c Wed Jan 21 23:48:40 2009 +0100
10@@ -127,6 +127,11 @@
11 return m_wallchops(cptr, sptr, parc, parv);
12 }
13
14+ if (parv[1][0] == '+' && IsChannelPrefix(parv[1][1])) {
15+ parv[1]++; /* Get rid of '+' */
16+ return m_wallvoices(cptr, sptr, parc, parv);
17+ }
18+
19 count = unique_name_vector(parv[1], ',', vector, MAXTARGETS);
20
21 chancount = 0;
22@@ -226,6 +231,11 @@
23 return m_wallchops(cptr, sptr, parc, parv);
24 }
25
26+ if (parv[1][0] == '+' && IsChannelPrefix(parv[1][1])) {
27+ parv[1]++; /* Get rid of '+' */
28+ return m_wallvoices(cptr, sptr, parc, parv);
29+ }
30+
31 count = unique_name_vector(parv[1], ',', vector, MAXTARGETS);
32
33 chancount = 0;