chiark
/
gitweb
/
~matthewv
/
irc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
new trouts from rjk
[irc.git]
/
Servus-chiark.py
diff --git
a/Servus-chiark.py
b/Servus-chiark.py
index de6a88fa36069da51d134ad5cd1b28d29d0d7037..02c44d3aa59abdca0ef33899bcda965b620b8915 100644
(file)
--- 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):
# 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:
ours=0
try:
if public and cmd[0] in triggers:
@@
-200,7
+201,7
@@
def command(bot, cmd, nick, conn, public):
lastexp=t
if public:
lastexp=t
if public:
- if c.urlre.search(cmd):
+ if c.urlre.search(cmd)
and command.lower()!="url"
:
c.dourl(bot,conn,nick,cmd,urldb)
# karma: up
c.dourl(bot,conn,nick,cmd,urldb)
# karma: up