projects
/
ircu2.10.12-pk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Author: Isomer <perry@coders.net>
[ircu2.10.12-pk.git]
/
ircd
/
m_away.c
diff --git
a/ircd/m_away.c
b/ircd/m_away.c
index db726ffce8c45998e0546db758ab8df2dc24ebcb..959508429cc80424f917605a9e254793285ab563 100644
(file)
--- a/
ircd/m_away.c
+++ b/
ircd/m_away.c
@@
-141,7
+141,7
@@
int ms_away(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
* servers can't set away
*/
if (IsServer(sptr))
* servers can't set away
*/
if (IsServer(sptr))
- return
0
;
+ return
protocol_violation(sptr,"Server trying to set itself away")
;
if (user_set_away(sptr->user, away_message))
sendcmdto_serv_butone(sptr, CMD_AWAY, cptr, ":%s", away_message);
if (user_set_away(sptr->user, away_message))
sendcmdto_serv_butone(sptr, CMD_AWAY, cptr, ":%s", away_message);