From 60b3c3568a275caa0ac1a386a9f03982cd3a4ffd Mon Sep 17 00:00:00 2001 From: "geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Sun, 10 Sep 2006 19:24:20 +0000 Subject: [PATCH] BUILD : 1.7.15 (1151) BUGS : 601 NOTES : Fixed us with reposding we didnt git-svn-id: svn://svn.anope.org/anope/trunk@1151 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@874 5417fbe8-f217-4b02-8779-1006273d7864 --- Changes | 1 + src/messages.c | 10 ++++++++++ version.log | 6 +++++- 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index 3aa932800..c641668e0 100644 --- a/Changes +++ b/Changes @@ -9,6 +9,7 @@ Provided by Anope Dev. - 2006 09/10 F Help for NickServ SET AUTOOP was missing. [#587] 09/10 F Added HOP to the /CS ACCESS error when XOP is enabled. [#598] 09/10 F MySQL no longer connects again on each query. [#595] +09/10 F Nick Enforcers can now be whois'd on services. [#601] Provided by Trystan - 2006 08/20 F Fixed several compiler warnings. [#586] diff --git a/src/messages.c b/src/messages.c index 9c678e5df..22aac8265 100644 --- a/src/messages.c +++ b/src/messages.c @@ -329,6 +329,7 @@ int m_version(char *source, int ac, char **av) int m_whois(char *source, char *who) { BotInfo *bi; + NickAlias *na; const char *clientdesc; if (source && who) { @@ -362,6 +363,15 @@ int m_whois(char *source, char *who) start_time); anope_cmd_318(source, bi->nick); return MOD_CONT; + } else if (!(ircd->svshold && UseSVSHOLD) && (na = findnick(who)) && (na->status & NS_KILL_HELD)) { + /* We have a nick enforcer client here that we need to respond to. + * We can't just say it doesn't exist here, even tho it does for + * other servers :) -GD + */ + anope_cmd_311("%s %s %s %s * :Services Enforcer", source, na->nick, NSEnforcerUser, NSEnforcerHost); + anope_cmd_312("%s %s %s :%s", source, na->nick, ServerName, ServerDesc); + anope_cmd_318(source, na->nick); + return MOD_CONT; } else { anope_cmd_401(source, who); return MOD_CONT; diff --git a/version.log b/version.log index de77abe64..55636071c 100644 --- a/version.log +++ b/version.log @@ -9,10 +9,14 @@ VERSION_MAJOR="1" VERSION_MINOR="7" VERSION_PATCH="15" VERSION_EXTRA="-svn" -VERSION_BUILD="1150" +VERSION_BUILD="1151" # $Log$ # +# BUILD : 1.7.15 (1151) +# BUGS : 601 +# NOTES : Fixed us with reposding we didn't know someone when we were WHOIS'd for a nick enforcer client; now we reply correctly +# # BUILD : 1.7.15 (1150) # BUGS : 595 # NOTES : Fixed MySQL making a new connection for each query (bit TOO enthousiastic?)