diff options
Diffstat (limited to 'src/cmd_away.cpp')
-rw-r--r-- | src/cmd_away.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd_away.cpp b/src/cmd_away.cpp index 86e5559f3..627feefc0 100644 --- a/src/cmd_away.cpp +++ b/src/cmd_away.cpp @@ -35,13 +35,13 @@ void cmd_away::Handle (const char** parameters, int pcnt, userrec *user) if (pcnt) { strlcpy(user->awaymsg,parameters[0],MAXAWAY); - WriteServ(user->fd,"306 %s :You have been marked as being away",user->nick); + user->WriteServ("306 %s :You have been marked as being away",user->nick); FOREACH_MOD(I_OnSetAway,OnSetAway(user)); } else { *user->awaymsg = 0; - WriteServ(user->fd,"305 %s :You are no longer marked as being away",user->nick); + user->WriteServ("305 %s :You are no longer marked as being away",user->nick); FOREACH_MOD(I_OnCancelAway,OnCancelAway(user)); } } |