diff options
Diffstat (limited to 'src/cmd_notice.cpp')
-rw-r--r-- | src/cmd_notice.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/cmd_notice.cpp b/src/cmd_notice.cpp index 378c48f1e..08ae3f260 100644 --- a/src/cmd_notice.cpp +++ b/src/cmd_notice.cpp @@ -77,12 +77,12 @@ void cmd_notice::Handle (const char** parameters, int pcnt, userrec *user) { if ((chan->modes[CM_NOEXTERNAL]) && (!chan->HasUser(user))) { - WriteServ(user->fd,"404 %s %s :Cannot send to channel (no external messages)", user->nick, chan->name); + user->WriteServ("404 %s %s :Cannot send to channel (no external messages)", user->nick, chan->name); return; } if ((chan->modes[CM_MODERATED]) && (cstatus(user,chan)<STATUS_VOICE)) { - WriteServ(user->fd,"404 %s %s :Cannot send to channel (+m)", user->nick, chan->name); + user->WriteServ("404 %s %s :Cannot send to channel (+m)", user->nick, chan->name); return; } } @@ -98,7 +98,7 @@ void cmd_notice::Handle (const char** parameters, int pcnt, userrec *user) if (temp == "") { - WriteServ(user->fd,"412 %s No text to send", user->nick); + user->WriteServ("412 %s No text to send", user->nick); return; } @@ -109,7 +109,7 @@ void cmd_notice::Handle (const char** parameters, int pcnt, userrec *user) else { /* no such nick/channel */ - WriteServ(user->fd,"401 %s %s :No such nick/channel",user->nick, parameters[0]); + user->WriteServ("401 %s %s :No such nick/channel",user->nick, parameters[0]); } return; } @@ -129,7 +129,7 @@ void cmd_notice::Handle (const char** parameters, int pcnt, userrec *user) if (dest->fd > -1) { // direct write, same server - WriteTo(user, dest, "NOTICE %s :%s", dest->nick, parameters[1]); + user->WriteTo(dest, "NOTICE %s :%s", dest->nick, parameters[1]); } FOREACH_MOD(I_OnUserNotice,OnUserNotice(user,dest,TYPE_USER,parameters[1],0)); @@ -137,6 +137,6 @@ void cmd_notice::Handle (const char** parameters, int pcnt, userrec *user) else { /* no such nick/channel */ - WriteServ(user->fd,"401 %s %s :No such nick/channel",user->nick, parameters[0]); + user->WriteServ("401 %s %s :No such nick/channel",user->nick, parameters[0]); } } |