Browse Source

URL encode parens.

Douglas William Thrift 14 years ago
parent
commit
1823d997e7
1 changed files with 1 additions and 1 deletions
  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: