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
|
## About
|
||||||
|
|
||||||
|
@ -102,7 +102,7 @@ The programs `screen` or `daemon` are recomended for the wrapper to run optimaly
|
||||||
## License
|
## License
|
||||||
CloudBot is **licensed** under the **GPL v3** license. The terms are as follows.
|
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>
|
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):
|
class Bot(object):
|
||||||
pass
|
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()
|
bot = Bot()
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ def parse(match):
|
||||||
except:
|
except:
|
||||||
return "fail"
|
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):
|
def urlparser(match, say=None):
|
||||||
url = urlnorm.normalize(match.group().encode('utf-8'))
|
url = urlnorm.normalize(match.group().encode('utf-8'))
|
||||||
if url[:7] != "http://":
|
if url[:7] != "http://":
|
||||||
|
|
Reference in a new issue