]> git.99rst.org Git - irssi-scripts.irssi.org.git/commitdiff
Support nicklists in XMPP rooms
authorTobias Langhoff <redacted>
Tue, 10 Jun 2014 10:58:13 +0000 (12:58 +0200)
committerTobias Langhoff <redacted>
Tue, 10 Jun 2014 10:58:13 +0000 (12:58 +0200)
Add support for nicklists in XMPP chat rooms when using irssi-xmpp, http://cybione.org/~irssi-xmpp/

scripts/nicklist.pl [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 0dbe4fb..0317ba3
@@ -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 {
git clone https://git.99rst.org/PROJECT