Actually, this is nicer.
This commit is contained in:
1 parent
3c7e975c98
commit
e154175571
1 file changed
+1
-1
+1
-1
@@ -299,7 +299,7 @@ sub cjoin
|
|||||||
my ($svr, @ex) = @_;
|
my ($svr, @ex) = @_;
|
||||||
my %src = API::IRC::usrc(substr($ex[0], 1));
|
my %src = API::IRC::usrc(substr($ex[0], 1));
|
||||||
my $chan = $ex[2];
|
my $chan = $ex[2];
|
||||||
if ($chan =~ m/^:/xsm) { $chan = substr $chan, 1; }
|
$chan =~ s/^://gxsm;
|
||||||
|
|
||||||
# Check if this is coming from ourselves.
|
# Check if this is coming from ourselves.
|
||||||
if ($src{nick} eq $botnick{$svr}{nick}) {
|
if ($src{nick} eq $botnick{$svr}{nick}) {
|
||||||
|
|||||||
Reference in new issue
Block a user