diff options
author | Attila Molnar <attilamolnar@hush.com> | 2013-05-14 16:24:08 -0700 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2013-05-14 16:24:08 -0700 |
commit | 23e8bba13c55d33ce89d505780da36c9589e300a (patch) | |
tree | 85a2e81cde272a0900b0e448d2d1fabdfd7e897e /src/commands/cmd_zline.cpp | |
parent | c5ab97b1efe26609e7b9e3ff2301ad0c0911a0f6 (diff) | |
parent | 226a95aab09b9e1f43f61e78179bfa1135816c2d (diff) |
Merge pull request #523 from SaberUK/master+server-notice
Add method for writing server notices.
Diffstat (limited to 'src/commands/cmd_zline.cpp')
-rw-r--r-- | src/commands/cmd_zline.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/commands/cmd_zline.cpp b/src/commands/cmd_zline.cpp index 5027c94c7..fdb156e0a 100644 --- a/src/commands/cmd_zline.cpp +++ b/src/commands/cmd_zline.cpp @@ -49,7 +49,7 @@ CmdResult CommandZline::Handle (const std::vector<std::string>& parameters, User { if (target.find('!') != std::string::npos) { - user->WriteServ("NOTICE %s :*** You cannot include a nickname in a zline, a zline must ban only an IP mask",user->nick.c_str()); + user->WriteNotice("*** You cannot include a nickname in a zline, a zline must ban only an IP mask"); return CMD_FAILURE; } @@ -92,7 +92,7 @@ CmdResult CommandZline::Handle (const std::vector<std::string>& parameters, User else { delete zl; - user->WriteServ("NOTICE %s :*** Z-Line for %s already exists",user->nick.c_str(),ipaddr); + user->WriteNotice("*** Z-Line for " + std::string(ipaddr) + " already exists"); } } else @@ -103,7 +103,7 @@ CmdResult CommandZline::Handle (const std::vector<std::string>& parameters, User } else { - user->WriteServ("NOTICE %s :*** Z-Line %s not found in list, try /stats Z.",user->nick.c_str(),target.c_str()); + user->WriteNotice("*** Z-Line " + target + " not found in list, try /stats Z."); return CMD_FAILURE; } } |