Man, this patch just keeps dragin. make urlparse.py not need a / after aurl
This commit is contained in:
parent
53da740725
commit
5234eac522
|
@ -1,4 +1,4 @@
|
|||
# CloudBot/1.1b
|
||||
# CloudBot/1.1c
|
||||
|
||||
## About
|
||||
|
||||
|
@ -102,7 +102,7 @@ The programs `screen` or `daemon` are recomended for the wrapper to run optimaly
|
|||
## License
|
||||
CloudBot is **licensed** under the **GPL v3** license. The terms are as follows.
|
||||
|
||||
CloudBot/1.1b
|
||||
CloudBot/1.1c
|
||||
|
||||
Copyright © 2011 Luke Rogers <http://www.dempltr.com/> - <lukeroge@gmail.com>
|
||||
|
||||
|
|
2
bot.py
2
bot.py
|
@ -13,7 +13,7 @@ os.chdir(sys.path[0] or '.') # do stuff relative to the install directory
|
|||
class Bot(object):
|
||||
pass
|
||||
|
||||
print 'Welcome to Cloudbot - Version 1.1b - http://git.io/cloudbot'
|
||||
print 'Welcome to Cloudbot - Version 1.1c - http://git.io/cloudbot'
|
||||
|
||||
bot = Bot()
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ def parse(match):
|
|||
except:
|
||||
return "fail"
|
||||
|
||||
@hook.regex(r'(^[^\.])([a-zA-Z]://|www\.)?[^ ]+(\.[a-z]+)\/(.*)')
|
||||
@hook.regex(r'(^[^\.])([a-zA-Z]://|www\.)?[^ ]+(\.[a-z]+)(\/)?(.*)')
|
||||
def urlparser(match, say=None):
|
||||
url = urlnorm.normalize(match.group().encode('utf-8'))
|
||||
if url[:7] != "http://":
|
||||
|
|
Reference in a new issue