diff options
| author | 2010-12-01 14:27:27 -0500 | |
|---|---|---|
| committer | 2010-12-01 14:27:27 -0500 | |
| commit | 1fec68b4cabc45efd24124b4656ad89bae264f3e (patch) | |
| tree | 62f0da91acb3c8387e47958d4bf1598a2086f670 /src/modules/m_clear.cpp | |
| parent | Remove unused variables and functions (diff) | |
Use const references
Diffstat (limited to 'src/modules/m_clear.cpp')
| -rw-r--r-- | src/modules/m_clear.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_clear.cpp b/src/modules/m_clear.cpp index b3d8d9338..e964bd3f8 100644 --- a/src/modules/m_clear.cpp +++ b/src/modules/m_clear.cpp @@ -26,7 +26,7 @@ class ClearBase : public Command the command but kick and mode accesses must be checked */ virtual int CheckAccess (User *who, Channel *chan) = 0; /* function to do things after the clear, like notifying ircops in saclear */ - virtual void PostClear (User *user, Channel *chan, const std::string type) + virtual void PostClear (User *user, Channel *chan, const std::string& type) { } /* make the user user clear the mode pointed to by mh on channel chan */ @@ -155,7 +155,7 @@ class SaclearCommand : public ClearBase return 0; } /* post clear hook */ - void PostClear (User *user, Channel *chan, const std::string type) + void PostClear (User *user, Channel *chan, const std::string& type) { /* send notice */ ServerInstance->SNO->WriteGlobalSno ('a', "%s used saclear %s on channel %s", user->nick.c_str ( ), type.c_str ( ), chan->name.c_str ( |
