shadowm

Untitled

Oct 4th, 2012
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.61 KB | None | 0 0
  1. shadowm@reicore:~/src/irker$ git diff
  2. diff --git a/irkerd b/irkerd
  3. index a9c6eed..d18cd18 100755
  4. --- a/irkerd
  5. +++ b/irkerd
  6. @@ -404,7 +404,7 @@ class Irker:
  7.                  if type(message) not in (type(""), type(u"")):
  8.                      self.logerr("malformed request - unexpected message type: %r" % message)
  9.                  else:
  10. -                    if isinstance(channels, unicode):
  11. +                    if type(channels) in (type(""), type(u"")):
  12.                          channels = [channels]
  13.                      for url in channels:
  14.                          if not type(url) in (type(""), type(u"")):
Advertisement
Add Comment
Please, Sign In to add comment