Commit 88bb5399 authored by rniwa@webkit.org's avatar rniwa@webkit.org
Browse files

WKR build fix. Somehow tool.bugs.quips() doesn't work in WKR so work around that.

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


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154448 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 948ea290
2013-08-22 Ryosuke Niwa <rniwa@webkit.org>
WKR build fix. Somehow tool.bugs.quips() doesn't work in WKR so work around that.
* Scripts/webkitpy/tool/bot/irc_command.py:
(Hi.execute):
2013-08-22 Allan Sandfeld Jensen <allan.jensen@digia.com>
[Qt] DRT bug revealed/caused by r154300
......
......@@ -116,6 +116,8 @@ class Hi(IRCCommand):
def execute(self, nick, args, tool, sheriff):
if len(args) and re.match(sheriff.name() + r'_*\s*!\s*', ' '.join(args)):
return "%s: hi %s!" % (nick, nick)
if sheriff.name() == 'WKR': # For some unknown reason, WKR can't use tool.bugs.quips().
return "You're doing it wrong"
quips = tool.bugs.quips()
quips.append('"Only you can prevent forest fires." -- Smokey the Bear')
return random.choice(quips)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment