diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_samode.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/modules/m_samode.cpp b/src/modules/m_samode.cpp index 34278101e..1f68e48bf 100644 --- a/src/modules/m_samode.cpp +++ b/src/modules/m_samode.cpp @@ -61,7 +61,7 @@ class cmd_samode : public command_t if (ServerInstance->Modes->GetLastParse().length()) { - ServerInstance->WriteOpers(std::string(user->nick)+" used SAMODE: "+ServerInstance->Modes->GetLastParse()); + ServerInstance->WriteOpers("*** " + std::string(user->nick) + " used SAMODE: " + ServerInstance->Modes->GetLastParse()); std::deque<std::string> n; irc::spacesepstream spaced(ServerInstance->Modes->GetLastParse()); @@ -78,6 +78,10 @@ class cmd_samode : public command_t */ return CMD_FAILURE; } + else + { + user->WriteServ("NOTICE %s :*** Invalid SAMODE sequence.", user->nick); + } return CMD_FAILURE; } |