Compare commits

..

No commits in common. "a1786b3d859138632ea82fc71c8cfd26e3fd4d6b" and "99b40b9e5492da391272584ee79b0e7e63cff402" have entirely different histories.

3 changed files with 3 additions and 6 deletions

View File

@ -10,4 +10,3 @@ Consider logging
Change `bot.say` to `bot.msg`
Add CTCP responses
More complex versioning
Better readme

View File

@ -67,8 +67,8 @@ def findandreplace(bot, trigger):
if trigger.is_privmsg:
return
rule = re.compile(r"(\S+)?(?:[:,]\s|^)s\/((?:\\\/|[^/])+)\/((?:\\\/|[^/])*"\
+ r")(?:\/(\S+))?")
rule = re.compile(r"(?:(\S+)[:,]\s+)?s\/((?:\\\/|[^/])+)\/((?:\\\/|[^/])*)"\
+ r"(?:\/(\S+))?")
group = rule.search(trigger.group(0))
if not group:
return

View File

@ -14,8 +14,6 @@ URI = 'https://en.wikipedia.org/wiki/List_of_Internet_top-level_domains'
def gettld(bot, trigger):
"""Show information about the given Top Level Domain."""
word = trigger.group(2).strip()
if not word:
return bot.reply("What TLD?")
if " " in word:
return bot.reply("One TLD at a time.")
if not word.startswith("."):