From: Tobias Langhoff Date: Tue, 10 Jun 2014 10:58:13 +0000 (+0200) Subject: Support nicklists in XMPP rooms X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=76c5573fd616dae56127a14d84fbd05c10cc1d8c;p=irssi-scripts.irssi.org.git Support nicklists in XMPP rooms Add support for nicklists in XMPP chat rooms when using irssi-xmpp, http://cybione.org/~irssi-xmpp/ --- diff --git a/scripts/nicklist.pl b/scripts/nicklist.pl old mode 100644 new mode 100755 index 0dbe4fb..0317ba3 --- a/scripts/nicklist.pl +++ b/scripts/nicklist.pl @@ -407,7 +407,7 @@ sub make_nicklist { ### get & check channel ### my $channel = Irssi::active_win->{active}; - if (!$channel || (ref($channel) ne 'Irssi::Irc::Channel' && ref($channel) ne 'Irssi::Silc::Channel') || $channel->{'type'} ne 'CHANNEL' || ($channel->{chat_type} ne 'SILC' && !$channel->{'names_got'}) ) { + if (!$channel || (ref($channel) ne 'Irssi::Irc::Channel' && ref($channel) ne 'Irssi::Silc::Channel' && ref($channel) ne 'Irssi::Xmpp::Channel') || $channel->{'type'} ne 'CHANNEL' || ($channel->{chat_type} ne 'SILC' && !$channel->{'names_got'}) ) { $active_channel = undef; # no nicklist } else {