From: Matthew Vernon Date: Fri, 4 Jun 2010 19:35:41 +0000 (+0100) Subject: declare some globals X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~matthewv/git?a=commitdiff_plain;h=0a9d6af4cae1fee078ae3356875f774d15e5f2e4;hp=c4a28171488f97455798c6aa8952bfc25893151d;p=irc.git declare some globals --- diff --git a/Servus-chiark.py b/Servus-chiark.py index de6a88f..0e0137c 100644 --- a/Servus-chiark.py +++ b/Servus-chiark.py @@ -183,6 +183,7 @@ triggers = ("!", "~") # what character should the bot be invoked by: # eg !trout, ~trout etc. def command(bot, cmd, nick, conn, public): + global urldb,lastexp,expirelen,expirevery ours=0 try: if public and cmd[0] in triggers: