Skip to content
This repository was archived by the owner on Mar 12, 2020. It is now read-only.
This repository was archived by the owner on Mar 12, 2020. It is now read-only.

[FEATURE REQUEST] Emit event that indicates that no command event was emitted #4

@hashworks

Description

@hashworks

Example:
I have a command nfo <dirname> which get's information about a scene dirname.
However, the same can be triggered by a dirname in irc.received.privmsg parsed by RegEx:

<hashworks> !nfo Rayman.Legends.MULTi13-PROPHET
<Phergie> Here is some information about Rayman.Legends.MULTi13-PROPHET.
<hashworks> Check out Rayman.Legends.MULTi13-PROPHET!
<Phergie> Here is some information about Rayman.Legends.MULTi13-PROPHET.

The problem is that the plugin needs to determine duplication by itself, otherwise it will react on both command.nfo and irc.received.privmsg:

<hashworks> !nfo Rayman.Legends.MULTi13-PROPHET
<Phergie> Here is some information about Rayman.Legends.MULTi13-PROPHET.
<Phergie> Here is some information about Rayman.Legends.MULTi13-PROPHET.

I solved this by avoiding PRIVMSGs with nfo in the message, however this isn't the best solution.

Instead of listening on irc.received.privmsg one should be able to listen to a event that indicates that no command event was emitted, f.e.:

  • no.command
  • no.command.privmsg
  • no.command.notice

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions