mirror of
https://github.com/irssi/irssi.git
synced 2024-10-27 05:20:20 -04:00
Show numerics directed at channels in the channel window.
This is about numerics where the target parameter is a channel, i.e. ":<server> <numeric> <#channel> ..." Usually, this parameter is the user's nick or an asterisk. An example is the numeric ircd-ratbox and charybdis send to channel operators on a successful /knock. git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5056 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
65feac9ef2
commit
bb92a2dbc7
@ -555,13 +555,15 @@ static void print_event_received(IRC_SERVER_REC *server, const char *data,
|
||||
|
||||
g_return_if_fail(data != NULL);
|
||||
|
||||
/* skip first param, it's always our nick */
|
||||
/* first param is our nick, "*" or a channel */
|
||||
ptr = strchr(data, ' ');
|
||||
if (ptr == NULL)
|
||||
return;
|
||||
ptr++;
|
||||
|
||||
if (!target_param || *ptr == ':' || (ptr2 = strchr(ptr, ' ')) == NULL)
|
||||
if (ischannel(*data)) /* directed at channel */
|
||||
target = g_strndup(data, (int)(ptr - data - 1));
|
||||
else if (!target_param || *ptr == ':' || (ptr2 = strchr(ptr, ' ')) == NULL)
|
||||
target = NULL;
|
||||
else {
|
||||
/* target parameter expected and present */
|
||||
|
Loading…
Reference in New Issue
Block a user