Skip to content

Commit

Permalink
Fixed queue length not triggering
Browse files Browse the repository at this point in the history
  • Loading branch information
Anya committed Apr 24, 2013
1 parent 846ffae commit fc70672
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hanyuu_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def lp(server, nick, channel, text, hostmask):
lp.handler = ("on_text", r'[.!@]lp$', irc.ALL_NICKS, irc.ALL_CHANNELS)

def queue(server, nick, channel, text, hostmask):
match = re.match(r"^[.@!]q(ueue)?\b(?P<command>l(ength)?)?", text, re.I|re.U)
match = re.match(r"^[.@!]q(ueue)?\s(?P<command>l(ength)?)?", text, re.I|re.U)

# We can be lazy here and not check if re.match() found anything because
# the function handler ensures [.!@]q(ueue)? match
Expand Down

0 comments on commit fc70672

Please sign in to comment.