Browse Source

URL encode parens.

Douglas William Thrift 14 năm trước cách đây
mục cha
commit
1823d997e7
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      locationbot.py

+ 1 - 1
locationbot.py

@@ -678,7 +678,7 @@ class LocationBot(ircbot.SingleServerIRCBot):
 		if granularity == 'best':
 			location = '%f,%f' % coordinates
 
-		return 'http://maps.google.com/maps?' + re.sub('%(2[89cC])', lambda match: chr(int(match.group(1), 16)), urllib.urlencode({'q': '%s (%s)' % (location, nick)}))
+		return 'http://maps.google.com/maps?' + re.sub('%(2[cC])', lambda match: chr(int(match.group(1), 16)), urllib.urlencode({'q': '%s (%s)' % (location, nick)}))
 
 	def __who(self, connection, nick):
 		if self.__logins: