diff options
| author | 2008-03-30 14:26:01 +0000 | |
|---|---|---|
| committer | 2008-03-30 14:26:01 +0000 | |
| commit | e2f4bf3a135e6b23fea21b2628c2c830de29cdec (patch) | |
| tree | f65396b2731efe96f631a6104912480139e1a797 /src/modules.cpp | |
| parent | Whack format warning, do these differ between gcc versions or something?! (diff) | |
Merge OnCancelAway and OnSetAway, add param awaymsg to OnSetAway (blank when cancelling), and change return type to int so modules can block away messages by returning nonzero.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9223 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules.cpp')
| -rw-r--r-- | src/modules.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules.cpp b/src/modules.cpp index 5ec74da7b..1081effa1 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -184,8 +184,7 @@ void Module::OnExpireLine(XLine*) { } void Module::OnCleanup(int, void*) { } int Module::OnChannelPreDelete(Channel*) { return 0; } void Module::OnChannelDelete(Channel*) { } -void Module::OnSetAway(User*) { } -void Module::OnCancelAway(User*) { } +void Module::OnSetAway(User*, const std::string &) { } int Module::OnUserList(User*, Channel*, CUList*&) { return 0; } int Module::OnWhoisLine(User*, User*, int&, std::string&) { return 0; } void Module::OnBuildExemptList(MessageType, Channel*, User*, char, CUList&, const std::string&) { } |
