[svn] In a two-argument whois, RPL_ENDOFWHOIS should show second arg.
This already works correctly for successful/notfound case.
This commit is contained in:
parent
fd488ac17a
commit
f7eac53df5
3 changed files with 15 additions and 4 deletions
11
ChangeLog
11
ChangeLog
|
@ -1,3 +1,14 @@
|
||||||
|
jilles 2007/07/14 13:34:50 UTC (20070714-3534)
|
||||||
|
Log:
|
||||||
|
Use mask_match() to check bans from local clients for
|
||||||
|
redundancy. This fixes the problem that bans like *!?@*
|
||||||
|
prevent any ban starting with *!*@ being set.
|
||||||
|
|
||||||
|
|
||||||
|
Changes: Modified:
|
||||||
|
+1 -1 trunk/src/chmode.c (File Modified)
|
||||||
|
|
||||||
|
|
||||||
jilles 2007/07/14 13:32:18 UTC (20070714-3532)
|
jilles 2007/07/14 13:32:18 UTC (20070714-3532)
|
||||||
Log:
|
Log:
|
||||||
Add mask_match(), like ircu mmatch().
|
Add mask_match(), like ircu mmatch().
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
#define SERNO "20070714-3532"
|
#define SERNO "20070714-3534"
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
* USA
|
* USA
|
||||||
*
|
*
|
||||||
* $Id: m_whois.c 3299 2007-03-28 14:54:10Z jilles $
|
* $Id: m_whois.c 3536 2007-07-14 21:50:21Z jilles $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "stdinc.h"
|
#include "stdinc.h"
|
||||||
|
@ -67,7 +67,7 @@ mapi_hlist_av1 whois_hlist[] = {
|
||||||
{ NULL, NULL }
|
{ NULL, NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
DECLARE_MODULE_AV1(whois, NULL, NULL, whois_clist, whois_hlist, NULL, "$Revision: 3299 $");
|
DECLARE_MODULE_AV1(whois, NULL, NULL, whois_clist, whois_hlist, NULL, "$Revision: 3536 $");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* m_whois
|
* m_whois
|
||||||
|
@ -96,7 +96,7 @@ m_whois(struct Client *client_p, struct Client *source_p, int parc, const char *
|
||||||
sendto_one(source_p, form_str(RPL_LOAD2HI),
|
sendto_one(source_p, form_str(RPL_LOAD2HI),
|
||||||
me.name, source_p->name, "WHOIS");
|
me.name, source_p->name, "WHOIS");
|
||||||
sendto_one_numeric(source_p, RPL_ENDOFWHOIS,
|
sendto_one_numeric(source_p, RPL_ENDOFWHOIS,
|
||||||
form_str(RPL_ENDOFWHOIS), parv[1]);
|
form_str(RPL_ENDOFWHOIS), parv[2]);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue