mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 12:23:37 +02:00
Implement CHANTYPES support
This commit is contained in:
parent
c122a2a226
commit
16c71cf1fb
23 changed files with 57 additions and 55 deletions
|
|
@ -400,7 +400,7 @@ static void event_target_unavailable(IRC_SERVER_REC *server, const char *data,
|
|||
g_return_if_fail(data != NULL);
|
||||
|
||||
params = event_get_params(data, 2, NULL, &target);
|
||||
if (!ischannel(*target)) {
|
||||
if (!server_ischannel(SERVER(server), target)) {
|
||||
/* nick unavailable */
|
||||
printformat(server, NULL, MSGLEVEL_CRAP,
|
||||
IRCTXT_NICK_UNAVAILABLE, target);
|
||||
|
|
@ -583,7 +583,7 @@ static void print_event_received(IRC_SERVER_REC *server, const char *data,
|
|||
return;
|
||||
ptr++;
|
||||
|
||||
if (ischannel(*data)) /* directed at channel */
|
||||
if (server_ischannel(SERVER(server), data)) /* directed at channel */
|
||||
target = g_strndup(data, (int)(ptr - data - 1));
|
||||
else if (!target_param || *ptr == ':' || (ptr2 = strchr(ptr, ' ')) == NULL)
|
||||
target = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue