diff options
| author | 2013-05-14 16:24:08 -0700 | |
|---|---|---|
| committer | 2013-05-14 16:24:08 -0700 | |
| commit | 23e8bba13c55d33ce89d505780da36c9589e300a (patch) | |
| tree | 85a2e81cde272a0900b0e448d2d1fabdfd7e897e /src/modules/m_chghost.cpp | |
| parent | m_spanningtree UID handler: Fix parsing user modes (diff) | |
| parent | Add method for writing server notices. (diff) | |
Merge pull request #523 from SaberUK/master+server-notice
Add method for writing server notices.
Diffstat (limited to 'src/modules/m_chghost.cpp')
| -rw-r--r-- | src/modules/m_chghost.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_chghost.cpp b/src/modules/m_chghost.cpp index 15e360b1a..eb4434d21 100644 --- a/src/modules/m_chghost.cpp +++ b/src/modules/m_chghost.cpp @@ -43,7 +43,7 @@ class CommandChghost : public Command if (parameters[1].length() > 63) { - user->WriteServ("NOTICE %s :*** CHGHOST: Host too long", user->nick.c_str()); + user->WriteNotice("*** CHGHOST: Host too long"); return CMD_FAILURE; } @@ -51,7 +51,7 @@ class CommandChghost : public Command { if (!hostmap[(unsigned char)*x]) { - user->WriteServ("NOTICE "+user->nick+" :*** CHGHOST: Invalid characters in hostname"); + user->WriteNotice("*** CHGHOST: Invalid characters in hostname"); return CMD_FAILURE; } } |
