Skip to content

Commit

Permalink
Fixed IRC bot reacting on unclosed single quote.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Mayorov committed Feb 13, 2013
1 parent 35a8719 commit 2bb0ce9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions master/buildbot/status/words.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def command_VERSION(self, args, who):
self.send("buildbot-%s at your service" % version)

def command_LIST(self, args, who):
args = shlex.split(args)
args = shlex.split(args, posix=False)
if len(args) == 0:
raise UsageError, "try 'list builders'"
if args[0] == 'builders':
Expand All @@ -245,7 +245,7 @@ def command_LIST(self, args, who):
command_LIST.usage = "list builders - List configured builders"

def command_STATUS(self, args, who):
args = shlex.split(args)
args = shlex.split(args, posix=False)
if len(args) == 0:
which = "all"
elif len(args) == 1:
Expand Down Expand Up @@ -304,7 +304,7 @@ def remove_all_notification_events(self):
self.unsubscribe_from_build_events()

def command_NOTIFY(self, args, who):
args = shlex.split(args)
args = shlex.split(args, posix=False)

if not args:
raise UsageError("try 'notify on|off|list <EVENT>'")
Expand Down Expand Up @@ -335,7 +335,7 @@ def command_NOTIFY(self, args, who):
command_NOTIFY.usage = "notify on|off|list [<EVENT>] ... - Notify me about build events. event should be one or more of: 'started', 'finished', 'failure', 'success', 'exception' or 'xToY' (where x and Y are one of success, warnings, failure, exception, but Y is capitalized)"

def command_WATCH(self, args, who):
args = shlex.split(args)
args = shlex.split(args, posix=False)
if len(args) != 1:
raise UsageError("try 'watch <builder>'")
which = args[0]
Expand Down Expand Up @@ -494,7 +494,7 @@ def watchedBuildFinished(self, b):

def command_FORCE(self, args, who):
errReply = "try 'force build [--branch=BRANCH] [--revision=REVISION] [--props=PROP1=VAL1,PROP2=VAL2...] <WHICH> <REASON>'"
args = shlex.split(args)
args = shlex.split(args, posix=False)
if not args:
raise UsageError(errReply)
what = args.pop(0)
Expand Down Expand Up @@ -562,7 +562,7 @@ def subscribe(buildreq):
command_FORCE.usage = "force build [--branch=branch] [--revision=revision] [--props=prop1=val1,prop2=val2...] <which> <reason> - Force a build"

def command_STOP(self, args, who):
args = shlex.split(args)
args = shlex.split(args, posix=False)
if len(args) < 3 or args[0] != 'build':
raise UsageError, "try 'stop build WHICH <REASON>'"
which = args[1]
Expand Down Expand Up @@ -623,7 +623,7 @@ def emit_status(self, which):
self.send(str)

def command_LAST(self, args, who):
args = shlex.split(args)
args = shlex.split(args, posix=False)

if len(args) == 0:
which = "all"
Expand Down Expand Up @@ -681,7 +681,7 @@ def command_UNMUTE(self, args, who):
command_UNMUTE.usage = "unmute - disable a previous 'mute'"

def command_HELP(self, args, who):
args = shlex.split(args)
args = shlex.split(args, posix=False)
if len(args) == 0:
self.send("Get help on what? (try 'help <foo>', 'help <foo> <bar>, "
"or 'commands' for a command list)")
Expand Down

0 comments on commit 2bb0ce9

Please sign in to comment.