From 2d86278096674dea9d475747a7c80bede538fbc8 Mon Sep 17 00:00:00 2001 From: special Date: Sun, 1 Oct 2006 00:19:36 +0000 Subject: Added OnPostJoin, which is (at the moment) almost exactly identical to OnUserJoin but called after, so you can play with linking git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5361 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/channels.cpp | 1 + src/cmd_modules.cpp | 2 +- src/modules.cpp | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/channels.cpp b/src/channels.cpp index 3f74698d5..de698883f 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -427,6 +427,7 @@ chanrec* chanrec::ForceChan(InspIRCd* Instance, chanrec* Ptr,ucrec *a,userrec* u Ptr->UserList(user); } FOREACH_MOD_I(Instance,I_OnUserJoin,OnUserJoin(user,Ptr)); + FOREACH_MOD_I(Instance,I_OnPostJoin,OnPostJoin(user,Ptr)); return Ptr; } diff --git a/src/cmd_modules.cpp b/src/cmd_modules.cpp index 3e7f63399..c2fe71f70 100644 --- a/src/cmd_modules.cpp +++ b/src/cmd_modules.cpp @@ -34,7 +34,7 @@ char* itab[] = { "OnPostLocalTopicChange", "OnEvent", "OnRequest", "OnOperCompre", "OnGlobalOper", "OnPostConnect", "OnAddBan", "OnDelBan", "OnRawSocketAccept", "OnRawSocketClose", "OnRawSocketWrite", "OnRawSocketRead", "OnChangeLocalUserGECOS", "OnUserRegister", "OnOperCompare", "OnChannelDelete", "OnPostOper", "OnSyncOtherMetaData", "OnSetAway", "OnCancelAway", "OnNamesList", - "OnPostCommand", NULL + "OnPostCommand", "OnPostJoin", NULL }; extern "C" command_t* init_command(InspIRCd* Instance) diff --git a/src/modules.cpp b/src/modules.cpp index faee68075..2b62ba382 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -110,6 +110,7 @@ void Module::OnUserConnect(userrec* user) { } void Module::OnUserQuit(userrec* user, const std::string& message) { } void Module::OnUserDisconnect(userrec* user) { } void Module::OnUserJoin(userrec* user, chanrec* channel) { } +void Module::OnPostJoin(userrec* user, chanrec* channel) { } void Module::OnUserPart(userrec* user, chanrec* channel, const std::string &partmessage) { } void Module::OnRehash(const std::string ¶meter) { } void Module::OnServerRaw(std::string &raw, bool inbound, userrec* user) { } -- cgit v1.2.3