mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05: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:
parent
6e1d887a7a
commit
e563de4b81
@ -354,14 +354,18 @@ static char *get_redirect_nicklist(const char *nicks, int *free)
|
|||||||
{
|
{
|
||||||
char *str, *ret;
|
char *str, *ret;
|
||||||
|
|
||||||
if (strchr(nicks, ',') == NULL) {
|
if (*nicks != '!' && strchr(nicks, ',') == NULL) {
|
||||||
*free = FALSE;
|
*free = FALSE;
|
||||||
return (char *) nicks;
|
return (char *) nicks;
|
||||||
}
|
}
|
||||||
|
|
||||||
*free = TRUE;
|
*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, ",", ' ');
|
g_strdelimit(str, ",", ' ');
|
||||||
ret = g_strconcat(str, " ", nicks, NULL);
|
ret = g_strconcat(str, " ", nicks, NULL);
|
||||||
g_free(str);
|
g_free(str);
|
||||||
|
Loading…
Reference in New Issue
Block a user