Summary: weechat.buffer_search should do/support a case
Submitted by: fixato
Submitted on: Sat 17 Sep 2011 13:58:04 GMT
Category: script API plugins
Severity: 3 - Normal
Item Group: None
Assigned to: None
Discussion Lock: Any
IRC nick: FiXato
Say I've opened an (IRC) buffer called #photography (note: all lowercase).
Then, when someone does a /join #Photography, some IRC servers (Bahamut and
UnrealIRCd for instance) will report the channel name as #Photography (with a
In this case weechat.buffer_search will not be able to find the buffer, since
the cases don't match.
I would suggest having weechat.buffer_search do a case insensitive match (or
allowing an argument to enable it).
Fixed with a similar patch: the "(?i)" can be used for case insensitive
search, but the function "buffer_search_by_full_name" has not been added in
API: instead, the function buffer_search can be used with plugin set to "==".