1
0
mirror of https://github.com/irssi/irssi.git synced 2024-10-27 05:20:20 -04:00

Fix display of ratbox-style operspy whois (/whois !nick).

git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4874 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Jilles Tjoelker 2008-08-30 23:55:04 +00:00 committed by jilles
parent 6e1d887a7a
commit e563de4b81

View File

@ -354,14 +354,18 @@ static char *get_redirect_nicklist(const char *nicks, int *free)
{
char *str, *ret;
if (strchr(nicks, ',') == NULL) {
if (*nicks != '!' && strchr(nicks, ',') == NULL) {
*free = FALSE;
return (char *) nicks;
}
*free = TRUE;
str = g_strdup(nicks);
/* ratbox-style operspy whois takes !nick, echoes that
* in RPL_ENDOFWHOIS as normal but gives output about the
* plain nick
*/
str = g_strdup(*nicks == '!' ? nicks + 1 : nicks);
g_strdelimit(str, ",", ' ');
ret = g_strconcat(str, " ", nicks, NULL);
g_free(str);