diff options
| author | 2012-07-01 19:53:37 +0200 | |
|---|---|---|
| committer | 2012-07-01 21:07:22 +0200 | |
| commit | a17421dca39d4afabf7143797baa6e13a19a5a97 (patch) | |
| tree | e399d5e2133f1cf92ea2908a486594db036d4bb1 /src/modules/m_dccallow.cpp | |
| parent | m_callerid, m_dccallow Fix crash caused by allowing unregistered users and SI... (diff) | |
| download | inspircd++-a17421dca39d4afabf7143797baa6e13a19a5a97.tar.gz inspircd++-a17421dca39d4afabf7143797baa6e13a19a5a97.tar.bz2 inspircd++-a17421dca39d4afabf7143797baa6e13a19a5a97.zip | |
m_callerid, m_dccallow Use OnUserPostNick hook instead of OnUserPreNick
Diffstat (limited to 'src/modules/m_dccallow.cpp')
| -rw-r--r-- | src/modules/m_dccallow.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/modules/m_dccallow.cpp b/src/modules/m_dccallow.cpp index 0ec8fb395..0cea96154 100644 --- a/src/modules/m_dccallow.cpp +++ b/src/modules/m_dccallow.cpp @@ -257,7 +257,7 @@ class ModuleDCCAllow : public Module ServerInstance->Extensions.Register(ext); ServerInstance->AddCommand(&cmd); ReadFileConf(); - Implementation eventlist[] = { I_OnUserPreMessage, I_OnUserPreNotice, I_OnUserQuit, I_OnUserPreNick, I_OnRehash }; + Implementation eventlist[] = { I_OnUserPreMessage, I_OnUserPreNotice, I_OnUserQuit, I_OnUserPostNick, I_OnRehash }; ServerInstance->Modules->Attach(eventlist, this, 5); } @@ -284,10 +284,9 @@ class ModuleDCCAllow : public Module RemoveNick(user); } - virtual ModResult OnUserPreNick(User* user, const std::string &newnick) + virtual void OnUserPostNick(User* user, const std::string &oldnick) { RemoveNick(user); - return MOD_RES_PASSTHRU; } virtual ModResult OnUserPreMessage(User* user, void* dest, int target_type, std::string &text, char status, CUList &exempt_list) |
