diff options
Diffstat (limited to 'src/messages.c')
-rw-r--r-- | src/messages.c | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/src/messages.c b/src/messages.c index 22aac8265..8dd784dc9 100644 --- a/src/messages.c +++ b/src/messages.c @@ -329,7 +329,7 @@ int m_version(char *source, int ac, char **av) int m_whois(char *source, char *who) { BotInfo *bi; - NickAlias *na; + NickAlias *na; const char *clientdesc; if (source && who) { @@ -363,15 +363,18 @@ 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 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; |