diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-09-26 17:16:42 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-09-26 17:16:42 +0000 |
commit | 27199ee710c2d4d35b68ab0d974feedbdb65da09 (patch) | |
tree | 75eeb4094f8d67e782bc6a813761e4484be5ff29 | |
parent | cae372d1ebfa1469f1c654cc831435ab00e6c256 (diff) |
make OnPostConnect global
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5339 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | include/modules.h | 1 | ||||
-rw-r--r-- | src/modules/m_spanningtree.cpp | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/include/modules.h b/include/modules.h index 3f6ddb8d0..26b7d5014 100644 --- a/include/modules.h +++ b/include/modules.h @@ -1179,6 +1179,7 @@ class Module : public Extensible /** Called after a user has fully connected and all modules have executed OnUserConnect * This event is informational only. You should not change any user information in this * event. To do so, use the OnUserConnect method to change the state of local users. + * This is called for both local and remote users. * @param user The user who is connecting */ virtual void OnPostConnect(userrec* user); diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index f500af953..9828c8657 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -1735,6 +1735,8 @@ class TreeSocket : public InspSocket SourceServer->AddUserCount(); } + FOREACH_MOD(I_OnPostConnect,OnPostConnect(_new)); + return true; } |