cinchrb / cinch

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

Feature: A flag to make plugin rules case insensitive #6

Closed denkristoffer closed 14 years ago

denkristoffer commented 14 years ago

A flag like :case_sensitive => false (Defaults to true), to send along with the options, would be nice to have, so that "!ping", "!Ping" and "!PING" triggers the same thing.

leejarvis commented 14 years ago

This functionality already exists. Although admittedly current documentation is lacking to show this, it's called :ignore_case - See http://github.com/injekt/cinch/blob/master/lib/cinch/base.rb#L304

denkristoffer commented 14 years ago

Alright, sorry :)