From 51f80108c40fd0fc3271a86b33a4803b6131c6d3 Mon Sep 17 00:00:00 2001 From: Daniel Berlin Date: Sun, 2 Nov 2003 03:17:45 +0000 Subject: [PATCH] Added $randomint --- src/plugins.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins.py b/src/plugins.py index 9382e2706..376b2d84b 100644 --- a/src/plugins.py +++ b/src/plugins.py @@ -311,6 +311,7 @@ class Toggleable(object): randomnickre = re.compile ("\$randomnick", re.I) randomdatere = re.compile ("\$randomdate", re.I) +randomintre = re.compile ("\$randomint", re.I) whore = re.compile ("\$who", re.I) botnickre = re.compile("\$botnick", re.I) todayre = re.compile("\$today", re.I) @@ -328,6 +329,7 @@ def standardSubstitute(irc, msg, text): text) t = pow(2,30)*random.random()+time.time()/4.0 text = randomdatere.sub(time.ctime(t), text) + text = randomintre.sub(random.random(), text) text = whore.sub(msg.nick, text) text = botnickre.sub(irc.nick, text) text = todayre.sub(time.ctime(), text)