diff options
-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; } |