From 2579f3aefb7e8cf92f7b09de40fc4712351e5d82 Mon Sep 17 00:00:00 2001 From: w00t Date: Tue, 21 Feb 2006 22:10:41 +0000 Subject: Added 'is a registered nick' to whois git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3284 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_services.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src') 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) -- cgit v1.2.3