Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Net::IRC Auto-OP

by betterworld (Curate)
on Jun 03, 2007 at 19:27 UTC ( [id://618988]=note: print w/replies, xml ) Need Help??


in reply to Net::IRC Auto-OP

...it sends a private message to Chanserv telling it to op the user

If you have chanserv available, there are easier methods to automatically op users. See chanserv's "level" or "levels" command.

Replies are listed 'Best First'.
Re^2: Net::IRC Auto-OP
by Cheater (Novice) on Jun 03, 2007 at 19:34 UTC
    I don't want to use the levels command. After viewing the help page, I learned that it involves changing the level of the user I want to be auto oped. I don't want to do that. I want to leave their level as is, and just send a command to op them. As for the output, there is none. No error in the terminal, no getting kicked out of irc, no crash, nothing. The user just doesn't get OPed.
      Does your bot handle incoming private messages? Chanserv may be replying to you with a useful error message.

        I'm sure that Chanserv like any good bot won't respond to a privmsg with a privmsg, but with a notice.

        From the RFC:

        The NOTICE message is used similarly to PRIVMSG. The difference between NOTICE and PRIVMSG is that automatic replies must never be sent in response to a NOTICE message. This rule applies to servers too - they must not send any error reply back to the client on receipt of a notice. The object of this rule is to avoid loops between a client automatically sending something in response to something it received. This is typically used by automatons (clients with either an AI or other interactive program controlling their actions) which are always seen to be replying lest they end up in a loop with another automaton.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-19 06:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found