summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-21 22:10:41 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-21 22:10:41 +0000
commit2579f3aefb7e8cf92f7b09de40fc4712351e5d82 (patch)
tree80c3897b1fd62df8985d4f117d23992d8db35eaf /src
parent20c2b0716a66bcd0c1ae5805aa54d600ebc1306a (diff)
Added 'is a registered nick' to whois
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3284 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_services.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/modules/m_services.cpp b/src/modules/m_services.cpp
index 89074ff7f..3253d34dd 100644
--- a/src/modules/m_services.cpp
+++ b/src/modules/m_services.cpp
@@ -51,9 +51,19 @@ class ModuleServices : public Module
InsertMode(output, "rRM", 4);
}
+ /* <- :stitch.chatspike.net 307 w00t w00t :is a registered nick */
+ virtual void OnWhois(userrec* source, userrec* dest)
+ {
+ if (strchr(dest->modes, 'r'))
+ {
+ /* user is registered */
+ WriteServ(source->fd, "307 %s %s :is a registered nick", source->nick, dest->nick);
+ }
+ }
+
void Implements(char* List)
{
- List[I_OnUserPostNick] = List[I_OnUserPreMessage] = List[I_OnExtendedMode] = List[I_On005Numeric] = List[I_OnUserPreNotice] = List[I_OnUserPreJoin] = 1;
+ List[I_OnWhois] = List[I_OnUserPostNick] = List[I_OnUserPreMessage] = List[I_OnExtendedMode] = List[I_On005Numeric] = List[I_OnUserPreNotice] = List[I_OnUserPreJoin] = 1;
}
virtual void OnUserPostNick(userrec* user, std::string oldnick)