cinchrb / cinch

The IRC Bot Building Framework
http://www.rubydoc.info/gems/cinch
MIT License
1k stars 180 forks source link

Uppercase CTCP commands so they always match #241

Open Zarthus opened 7 years ago

Zarthus commented 7 years ago

Most clients by default send CTCP's where the argument is uppercased. However, sometimes a client may send a @ctcp_command in downcase format (e.g. version instead of VERSION).

The following code does not account for this, and using ctcp in a plugin will fail to work on non-uppercase-CTCP commands.