in reply to Re^2: Net::IRC Auto-OP
in thread Net::IRC Auto-OP
doesn't make sense. You're checking $nick for string-equality with the logical-ORed value of "xxx" and "yyy" which is just going to be "xxx". What you probably meant wasif ($nick eq ("xxx" || "yyy"))
If you have a bigger list of nicks you can use a hash, which is a lot easier than constructing a gigantic conditional.if ( $nick eq "xxx" or $nick eq "yyy" )
my %ops = ( xxx => 1, yyy => 1, zzz => 1 ); if ( $ops{$nick} == 1 ) { ... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Net::IRC Auto-OP
by Cheater (Novice) on Jun 03, 2007 at 21:52 UTC |