mirror of
https://github.com/osmarks/ngircd.git
synced 2025-02-07 21:00:03 +00:00
New RPL_WHOISREGNICK_MSG(307) numeric: indicate if nick is registered
This commit is contained in:
parent
12c60a670e
commit
4d0069c3a8
@ -1108,6 +1108,12 @@ IRC_WHOIS_SendReply(CLIENT *Client, CLIENT *from, CLIENT *c)
|
|||||||
Client_ID(c)))
|
Client_ID(c)))
|
||||||
return DISCONNECTED;
|
return DISCONNECTED;
|
||||||
|
|
||||||
|
/* Registered nick name? */
|
||||||
|
if (Client_HasMode(c, 'R') &&
|
||||||
|
!IRC_WriteStrClient(from, RPL_WHOISREGNICK_MSG,
|
||||||
|
Client_ID(from), Client_ID(c)))
|
||||||
|
return DISCONNECTED;
|
||||||
|
|
||||||
/* Idle and signon time (local clients only!) */
|
/* Idle and signon time (local clients only!) */
|
||||||
if (!Conf_MorePrivacy && Client_Conn(c) > NONE &&
|
if (!Conf_MorePrivacy && Client_Conn(c) > NONE &&
|
||||||
!IRC_WriteStrClient(from, RPL_WHOISIDLE_MSG,
|
!IRC_WriteStrClient(from, RPL_WHOISIDLE_MSG,
|
||||||
|
@ -56,6 +56,7 @@
|
|||||||
#define RPL_ISON_MSG "303 %s :"
|
#define RPL_ISON_MSG "303 %s :"
|
||||||
#define RPL_UNAWAY_MSG "305 %s :You are no longer marked as being away"
|
#define RPL_UNAWAY_MSG "305 %s :You are no longer marked as being away"
|
||||||
#define RPL_NOWAWAY_MSG "306 %s :You have been marked as being away"
|
#define RPL_NOWAWAY_MSG "306 %s :You have been marked as being away"
|
||||||
|
#define RPL_WHOISREGNICK_MSG "307 %s %s :is a registered nick"
|
||||||
#define RPL_WHOISUSER_MSG "311 %s %s %s %s * :%s"
|
#define RPL_WHOISUSER_MSG "311 %s %s %s %s * :%s"
|
||||||
#define RPL_WHOISSERVER_MSG "312 %s %s %s :%s"
|
#define RPL_WHOISSERVER_MSG "312 %s %s %s :%s"
|
||||||
#define RPL_WHOISOPERATOR_MSG "313 %s %s :is an IRC operator"
|
#define RPL_WHOISOPERATOR_MSG "313 %s %s :is an IRC operator"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user