Skip to content

Commit

Permalink
Feed the hobgoblins (delint).
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed May 10, 2018
1 parent 985355d commit 5e2307e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions irc/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,8 @@ def _handle_event(self, connection, event):
with self.mutex:
h = self.handlers
matching_handlers = sorted(
h.get("all_events", []) +
h.get(event.type, [])
h.get("all_events", [])
+ h.get(event.type, [])
)
for handler in matching_handlers:
result = handler.callback(connection, event)
Expand Down
2 changes: 1 addition & 1 deletion irc/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def handle_nick(self, params):
nick = params

# Valid nickname?
if re.search('[^a-zA-Z0-9\-\[\]\'`^{}_]', nick):
if re.search(r'[^a-zA-Z0-9\-\[\]\'`^{}_]', nick):
raise IRCError.from_name('erroneusnickname', ':%s' % nick)

if self.server.clients.get(nick, None) == self:
Expand Down

0 comments on commit 5e2307e

Please sign in to comment.