libpurple/purple-url-handler

changeset 31582
c561e11657b0
parent 30530
8f5fecc9b6c8
child 35581
2638707f038e
child 36798
21af2b190cfa
child 37443
78408ad717bd
--- a/libpurple/purple-url-handler	Wed Mar 16 01:46:12 2011 +0000
+++ b/libpurple/purple-url-handler	Wed Mar 16 04:59:16 2011 +0000
@@ -73,7 +73,7 @@
 def findaccount(protocolname, accountname="", matcher=None):
     if matcher:
         for account in cpurple.PurpleAccountsGetAll():
-            if (protocolname != cpurple.PurpleAccountGetProtocolID(account)) or \
+            if (protocolname != cpurple.PurpleAccountGetProtocolId(account)) or \
                (accountname != "" and accountname != cpurple.PurpleAccountGetUsername(account)):
                 continue
             if matcher(account):
@@ -188,7 +188,7 @@
         print "Invalid irc URI: %s" % uri
         return
 
-    server = urllib.unquote_plus(match.group(2)) or ""
+    server = urllib.unquote_plus(match.group(2) or "")
     target = match.group(3) or ""
     query = match.group(5) or ""
 

mercurial