Dice: allow !roll/!ctech strings anywhere, not just at the start of the line
This commit is contained in:
parent
341066a0ba
commit
ce93480e9b
@ -265,7 +265,7 @@ class Dice(Module):
|
|||||||
return output
|
return output
|
||||||
|
|
||||||
def do(self, connection, event, nick, userhost, what, admin_unlocked):
|
def do(self, connection, event, nick, userhost, what, admin_unlocked):
|
||||||
match = re.search('^!roll\s+(.*)$', what)
|
match = re.search('!roll\s+(.*)$', what)
|
||||||
if match:
|
if match:
|
||||||
dicestr = match.group(1)
|
dicestr = match.group(1)
|
||||||
self.build()
|
self.build()
|
||||||
@ -274,7 +274,7 @@ class Dice(Module):
|
|||||||
if reply is not "":
|
if reply is not "":
|
||||||
return self.reply(connection, event, nick + ': ' + reply)
|
return self.reply(connection, event, nick + ': ' + reply)
|
||||||
|
|
||||||
match = re.search('^!ctech\s+(.*)$', what)
|
match = re.search('!ctech\s+(.*)$', what)
|
||||||
if match:
|
if match:
|
||||||
rollitrs = re.split(';\s*', match.group(1))
|
rollitrs = re.split(';\s*', match.group(1))
|
||||||
reply = ""
|
reply = ""
|
||||||
|
Loading…
Reference in New Issue
Block a user