diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-04-13 13:02:20 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-04-13 13:02:20 +0000 |
commit | 409e3a5c8439b0d22524aeb802b04be3b9983fc5 (patch) | |
tree | 8cd9b75269d012785f4ccb50c3ebe599b7f765b8 /src/mode.cpp | |
parent | c0f731e19d61a971af5cf26d073ccd25bfc5c91c (diff) |
Added Module::OnSendList
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1072 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/mode.cpp')
-rw-r--r-- | src/mode.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mode.cpp b/src/mode.cpp index 3d25e6c06..467b3d09b 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -1283,6 +1283,16 @@ void handle_mode(char **parameters, int pcnt, userrec *user) WriteServ(user->fd,"368 %s %s :End of channel ban list",user->nick, Ptr->name); return; } + char* mode = parameters[1]; + if (*mode == '+') + mode++; + if ((ModeDefined(*mode,MT_CHANNEL)) && (ModeIsListMode(*mode,MT_CHANNEL))) + { + // list of items for an extmode + log(DEBUG,"Calling OnSendList for all modules, list output for mode %c",*mode); + FOREACH_MOD OnSendList(user,Ptr,*mode); + return; + } } if ((Ptr) && (!has_channel(user,Ptr))) |