summaryrefslogtreecommitdiff
path: root/src/cmd_whois.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-01-27 16:19:06 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-01-27 16:19:06 +0000
commit279e9acfaca41fe03e9d835a559e79844baadf3c (patch)
tree3438904d7c4d876ab6881a7dec62d84e46b6f195 /src/cmd_whois.cpp
parent49ce55f7a38fc9b6beb972442c828429456797a0 (diff)
fix so that OnWhois is triggered for remote whois, and remove smelly bold chars from m_botmode's numeric output.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6444 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_whois.cpp')
-rw-r--r--src/cmd_whois.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/cmd_whois.cpp b/src/cmd_whois.cpp
index 58328b3cc..8c8af78af 100644
--- a/src/cmd_whois.cpp
+++ b/src/cmd_whois.cpp
@@ -56,10 +56,9 @@ void do_whois(InspIRCd* ServerInstance, userrec* user, userrec* dest,unsigned lo
{
ServerInstance->SendWhoisLine(user, dest, 313, "%s %s :is %s %s on %s",user->nick, dest->nick, (strchr("AEIOUaeiou",*dest->oper) ? "an" : "a"),irc::Spacify(dest->oper), ServerInstance->Config->Network);
}
- if ((!signon) && (!idle))
- {
- FOREACH_MOD(I_OnWhois,OnWhois(user,dest));
- }
+
+ FOREACH_MOD(I_OnWhois,OnWhois(user,dest));
+
if (!strcasecmp(user->server,dest->server))
{
// idle time and signon line can only be sent if youre on the same server (according to RFC)