-
Notifications
You must be signed in to change notification settings - Fork 3
Modify handleNick() to fire a custom event #6
Comments
#6 handleNick emits 'nickserv.nick' when it receives relevant NICK event.
This isn't the right event to listen out for. Instead, the plugin should fire an event when it receives a privmsg or notice with the phrase "identified" (or "now identified"). The bot's nick being changed is more likely to be associated with NickServ implementations that forcibly change a user's nick if they fail to identify to it. |
Here's the event as Phergie v2 currently receives it from Freenode:
@Renegade334 @PSchwisow Is this a change one of you could make against master? |
@elazar Do you want me to remove the other event I added or leave that in place? |
@PSchwisow The event is the same, in name at least. The only difference is the circumstances under which it's emitted: rather than in |
…relevant notice. (Removed previous event.)
#6 handleNotice emits 'nickserv.confirmed' when it receives a relevant n...
@PSchwisow Merged. @Renegade334 Sufficient? |
Merged #11. |
There are instances where it is desirable for other plugins to be aware of when authentication with NickServ is successful, such as joining channels that require user registration. Modify
handleNick()
to emit a custom event that other plugins can listen for.The text was updated successfully, but these errors were encountered: