summaryrefslogtreecommitdiff
path: root/src/commands.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-23 23:33:13 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-23 23:33:13 +0000
commitddc514e66dacdaf475d9dddc33441498be985fa0 (patch)
treebab2bebf50264dc8386245f5c0b3266fb037223f /src/commands.cpp
parent69fea681a2ee63bde7b59a43174b8010c193549e (diff)
Added global oper monitoring through modules and global connect monitoring through modules
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1177 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/commands.cpp')
-rw-r--r--src/commands.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/commands.cpp b/src/commands.cpp
index 98a5809f6..fa51713d4 100644
--- a/src/commands.cpp
+++ b/src/commands.cpp
@@ -2212,9 +2212,14 @@ void handle_N(char token,char* params,serverrec* source,serverrec* reply, char*
clientlist[nick]->idle_lastmsg = TIME; // this is unrealiable and wont actually be used locally
for (int i = 0; i < MAXCHANS; i++)
{
- clientlist[nick]->chans[i].channel = NULL;
- clientlist[nick]->chans[i].uc_modes = 0;
- }
+ clientlist[nick]->chans[i].channel = NULL;
+ clientlist[nick]->chans[i].uc_modes = 0;
+ }
+ FOREACH_MOD OnGlobalConnect(clientlist[nick]);
+ if (strchr(clientlist[nick]->modes,'o'))
+ {
+ FOREACH_MOD OnGlobalOper(clientlist[nick]);
+ }
}
void handle_F(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host)