diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-10-26 20:53:37 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-10-26 20:53:37 +0000 |
commit | a796450b8c517d7e3ed8c6c9db53fdf86edcc3c9 (patch) | |
tree | 35877c8b7d90cb862624cfb494758619a2eaf5b0 | |
parent | 95962710e434e2453666ec5aab5d4c3c831065c7 (diff) |
Whoops, must be const
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8378 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | include/modules.h | 2 | ||||
-rw-r--r-- | src/modules.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/modules.h b/include/modules.h index 50142e253..ed8692a58 100644 --- a/include/modules.h +++ b/include/modules.h @@ -729,7 +729,7 @@ class CoreExport Module : public Extensible * @param text the text being sent by the user * @param status The status being used, e.g. NOTICE @#chan has status== '@', 0 to send to everyone. */ - virtual void OnText(User* user,void* dest,int target_type, std::string &text, char status, CUList &exempt_list); + virtual void OnText(User* user, void* dest, int target_type, const std::string &text, char status, CUList &exempt_list); /** Called after every MODE command sent from a user * The dest variable contains a User* if target_type is TYPE_USER and a Channel* diff --git a/src/modules.cpp b/src/modules.cpp index 6ef0975d6..85e5d0f03 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -196,7 +196,7 @@ int Module::OnWhoisLine(User*, User*, int&, std::string&) { return 0; } void Module::OnBuildExemptList(MessageType, Channel*, User*, char, CUList&, const std::string&) { } void Module::OnGarbageCollect() { } void Module::OnBufferFlushed(User*) { } -void Module::OnText(User*, void*, int, std::string&, char, CUList&) { } +void Module::OnText(User*, void*, int, const std::string&, char, CUList&) { } ModuleManager::ModuleManager(InspIRCd* Ins) |