Ensure that SHOW_AWAY_ONCE doesn't hide away status in /whois output, by

clearing last_away_msg when the 311 whois reply numeric is recieved.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@95 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
Kevin Easton
2010-09-05 09:03:32 +00:00
parent d6c105861c
commit 3c0e23a7c5
2 changed files with 6 additions and 1 deletions

View File

@@ -1,6 +1,8 @@
[Changes 1.2c01] [Changes 1.2c01]
* Fix up /WILN, /WILC and /WILCR. (caf). * Ensure that SHOW_AWAY_ONCE doesn't hide away status in /whois output. (caf)
* Fix up /WILN, /WILC and /WILCR. (caf)
* Backport changes from epic5 to make recv_nick, sent_nick and sent_body * Backport changes from epic5 to make recv_nick, sent_nick and sent_body
per-server, and apply new version of do_oops from flashback. This means per-server, and apply new version of do_oops from flashback. This means

View File

@@ -788,6 +788,9 @@ void numbered_command(char *from, int comm, char **ArgList)
#endif #endif
new_free(&userhost); new_free(&userhost);
} }
/* Make sure we don't hide the /away message */
new_free(&last_away_msg);
break; break;
} }
case 312: /* #define RPL_WHOISSERVER 312 */ case 312: /* #define RPL_WHOISSERVER 312 */