Changeset 22e6cefa54de681b131ecb97fc9383ff5e990dfe
- Timestamp:
- 08/07/08 00:06:10
(5 months ago)
- Author:
- Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
- git-committer:
- Giuseppe Bilotta <giuseppe.bilotta@gmail.com> 1218053170 +0200
- git-parent:
[2bd4a7ed4ba5ab7c3c522c4d8061c1ce35bdc336]
- git-author:
- Giuseppe Bilotta <giuseppe.bilotta@gmail.com> 1218052426 +0200
- Message:
nickserv plugin: regexp tweaks and case insensitivity
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r21947da |
r22e6cef |
|
| 36 | 36 | :desc => _("String to look for to see if the nick server is informing us that our nick is now available")) |
|---|
| 37 | 37 | Config.register Config::StringValue.new('nickserv.identified_string', |
|---|
| 38 | | :default => "(Password|Contrase|Mot de passe).+(acce[pt]t|r[ie]cog?n).+(identif|r[ie]cog?n)", |
|---|
| | 38 | :default => "((Password|Contrase|Mot de passe).+(acce[pt]t|r[ie]cog?n).+)?(you|tu|vous).+(identif|r[ie]cog?n)", |
|---|
| 39 | 39 | :requires_restart => false, |
|---|
| 40 | 40 | :on_change => Proc.new { |bot, v| bot.plugins.delegate "set_identified_string", v }, |
|---|
| … | … | |
| 69 | 69 | |
|---|
| 70 | 70 | def set_ident_request(val) |
|---|
| 71 | | @ident_request = Regexp.new(val) |
|---|
| | 71 | @ident_request = Regexp.new(val, true) |
|---|
| 72 | 72 | end |
|---|
| 73 | 73 | |
|---|
| 74 | 74 | def set_nick_avail(val) |
|---|
| 75 | | @nick_avail = Regexp.new(val) |
|---|
| | 75 | @nick_avail = Regexp.new(val, true) |
|---|
| 76 | 76 | end |
|---|
| 77 | 77 | |
|---|
| 78 | 78 | def set_identified_string(val) |
|---|
| 79 | | @identified_string = Regexp.new(val) |
|---|
| | 79 | @identified_string = Regexp.new(val, true) |
|---|
| 80 | 80 | end |
|---|
| 81 | 81 | |
|---|