libpurple/purple-url-handler

changeset 37985
c3bab3be9695
parent 37984
6a5ca046a90d
child 38240
0552f69f1996
equal deleted inserted replaced
37984:6a5ca046a90d 37985:c3bab3be9695
221 modifiers = {} 221 modifiers = {}
222 if target: 222 if target:
223 for modifier in target.split(",")[1:]: 223 for modifier in target.split(",")[1:]:
224 modifiers[modifier] = True 224 modifiers[modifier] = True
225 225
226 isnick = True if "isnick" in modifiers else False
227
228 paramstring = match.group(5) 226 paramstring = match.group(5)
229 params = {} 227 params = {}
230 if paramstring: 228 if paramstring:
231 for param in paramstring.split("&"): 229 for param in paramstring.split("&"):
232 key, value = extendlist(param.split("=", 1), 2, "") 230 key, value = extendlist(param.split("=", 1), 2, "")
238 "@" in username and server == username.split("@")[1]) 236 "@" in username and server == username.split("@")[1])
239 237
240 account = findaccount(protocol, matcher=correct_server) 238 account = findaccount(protocol, matcher=correct_server)
241 239
242 if target != "": 240 if target != "":
243 if isnick: 241 if "isnick" in modifiers:
244 goim(account, unquote_plus(target.split(",")[0]), 242 goim(account, unquote_plus(target.split(",")[0]),
245 params.get("msg")) 243 params.get("msg"))
246 else: 244 else:
247 channel = unquote_plus(target.split(",")[0]) 245 channel = unquote_plus(target.split(",")[0])
248 if channel[0] != "#": 246 if channel[0] != "#":

mercurial