mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 21:00:40 +02:00
added "use strict" for all scripts, made some small changes.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1639 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
0d3b5c729f
commit
69a6096b8b
8 changed files with 37 additions and 31 deletions
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
use Irssi;
|
||||
use Irssi::Irc;
|
||||
use strict;
|
||||
|
||||
sub event_rejoin_kick {
|
||||
my ($server, $data) = @_;
|
||||
|
|
@ -14,8 +15,8 @@ sub event_rejoin_kick {
|
|||
return if ($server->{nick} ne $nick);
|
||||
|
||||
# check if channel has password
|
||||
$chanrec = $server->channel_find($channel);
|
||||
$password = $chanrec->{key} if ($chanrec);
|
||||
my $chanrec = $server->channel_find($channel);
|
||||
my $password = $chanrec->{key} if ($chanrec);
|
||||
|
||||
# We have to use send_raw() because the channel record still
|
||||
# exists and irssi won't even try to join to it with command()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue