diff options
| author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-04-15 00:56:19 +0200 | 
|---|---|---|
| committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-04-15 00:56:19 +0200 | 
| commit | e7edbb75b23e200a8b6a8e766ede7af319a75dc9 (patch) | |
| tree | 955d38485cf8e98195b21caec42952284a8992cf /irc_send.c | |
| parent | 4c3519a8e9f8733577b0ca060a80606955f92cce (diff) | |
Don't show an empty status message line in /whois if status_msg is "".
And don't show version info in the response, WTF was that there anyway?
Diffstat (limited to 'irc_send.c')
| -rw-r--r-- | irc_send.c | 5 | 
1 files changed, 3 insertions, 2 deletions
| @@ -221,7 +221,8 @@ void irc_send_whois( irc_user_t *iu )  		           bu->ic->acc->server && *bu->ic->acc->server ? bu->ic->acc->server : "",  		           bu->ic->acc->prpl->name ); -		if( bu->status || bu->status_msg ) +		if( ( bu->status && *bu->status ) || +		    ( bu->status_msg && *bu->status_msg ) )  		{  			int num = bu->flags & BEE_USER_AWAY ? 301 : 320; @@ -233,7 +234,7 @@ void irc_send_whois( irc_user_t *iu )  	}  	else  	{ -		irc_send_num( irc, 312, "%s %s :%s", iu->nick, irc->root->host, IRCD_INFO " " BITLBEE_VERSION ); +		irc_send_num( irc, 312, "%s %s :%s", iu->nick, irc->root->host, IRCD_INFO );  	}  	irc_send_num( irc, 318, "%s :End of /WHOIS list", iu->nick ); | 
