8000 Added fully fledged OPER handling. · Pull Request #257 · cinchrb/cinch · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Apr 13, 2019. It is now read-only.

Added fully fledged OPER handling. #257

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Added fully fledged OPER handling. #257

wants to merge 3 commits into from

Conversation

ghost
Copy link
@ghost ghost commented Mar 24, 2018

This adds sending an OPER request automatically if
@bot.config.oper["user"]
@bot.config.oper["pass"]
are set in your config, in on_001.

This adds an :oper event, which can be listened for. This happens if the client recieves a 381, which signifies that the client is now an operator.
listen_to :oper, method: :test

This adds an :oper_fail event, which can be listened for. This happens if the client recieves a 464, which is an invalid password event.
listen_to :oper_fail, method: :test

This adds a @bot.is_oper boolean.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants
0