Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^3: Net::IRC Auto-OP

by friedo (Prior)
on Jun 03, 2007 at 21:46 UTC ( [id://619006]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Net::IRC Auto-OP
in thread Net::IRC Auto-OP

This:
if ($nick eq ("xxx" || "yyy"))
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 was
if ( $nick eq "xxx" or $nick eq "yyy" )
If you have a bigger list of nicks you can use a hash, which is a lot easier than constructing a gigantic conditional.
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
    Even fixing the or statement (I'll swith to a hash when I get a bigger list), it still won't op the users.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://619006]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-03-29 07:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found