Title: [149132] trunk/Tools
Revision
149132
Author
[email protected]
Date
2013-04-25 12:44:20 -0700 (Thu, 25 Apr 2013)

Log Message

webkitbot should recognize its own nickname in greetings.
https://bugs.webkit.org/show_bug.cgi?id=115196

Reviewed by Andreas Kling.

Make webkitbot recognize other forms of its nick. Also be tolerant of spaces between the nick and !.

* Scripts/webkitpy/tool/bot/irc_command.py:
(Hi.execute):

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (149131 => 149132)


--- trunk/Tools/ChangeLog	2013-04-25 19:31:50 UTC (rev 149131)
+++ trunk/Tools/ChangeLog	2013-04-25 19:44:20 UTC (rev 149132)
@@ -1,3 +1,15 @@
+2013-04-25  Ryosuke Niwa  <[email protected]>
+
+        webkitbot should recognize its own nickname in greetings.
+        https://bugs.webkit.org/show_bug.cgi?id=115196
+
+        Reviewed by Andreas Kling.
+
+        Make webkitbot recognize other forms of its nick. Also be tolerant of spaces between the nick and !.
+
+        * Scripts/webkitpy/tool/bot/irc_command.py:
+        (Hi.execute):
+
 2013-04-25  Xavier Castano  <[email protected]>
 
         [GTK] Tools/gtk/install-dependencies added ragel dependency

Modified: trunk/Tools/Scripts/webkitpy/tool/bot/irc_command.py (149131 => 149132)


--- trunk/Tools/Scripts/webkitpy/tool/bot/irc_command.py	2013-04-25 19:31:50 UTC (rev 149131)
+++ trunk/Tools/Scripts/webkitpy/tool/bot/irc_command.py	2013-04-25 19:44:20 UTC (rev 149132)
@@ -114,7 +114,7 @@
     help_string = "Retrieves a random quip from Bugzilla."
 
     def execute(self, nick, args, tool, sheriff):
-        if len(args) and args[0] == 'webkitbot!':
+        if len(args) and re.match(r'webkitbot_*\s*!\s*', args[0]):
             return "%s: hi %s!" % (nick, nick)
         quips = tool.bugs.quips()
         quips.append('"Only you can prevent forest fires." -- Smokey the Bear')
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to