chiark
/
gitweb
/
~matthewv
/
irc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
9aa26e3
)
Fixed public-command handling code so we know our caller was the user, not the channel
author
matthew
<matthew>
Wed, 6 Feb 2002 20:35:04 +0000
(20:35 +0000)
committer
matthew
<matthew>
Wed, 6 Feb 2002 20:35:04 +0000
(20:35 +0000)
acrobat-chiark-0.2.py
patch
|
blob
|
history
diff --git
a/acrobat-chiark-0.2.py
b/acrobat-chiark-0.2.py
index 0d9757d68d90a421f37ec76cde3b3057a988aefc..03971b051dfc0b0431527ef6b27856bf5884b8b7 100755
(executable)
--- a/
acrobat-chiark-0.2.py
+++ b/
acrobat-chiark-0.2.py
@@
-86,15
+86,15
@@
class Acrobat(SingleServerIRCBot):
and (irc_lower(a[0]) == irc_lower(self.connection.get_nickname())
or irc_lower(a[0])[:-1] == irc_lower(self.connection.get_nickname())):
and (irc_lower(a[0]) == irc_lower(self.connection.get_nickname())
or irc_lower(a[0])[:-1] == irc_lower(self.connection.get_nickname())):
- self.do_command(
self.channel
, string.strip(a[1]), public = 1)
+ self.do_command(
nm_to_n(evt.source())
, string.strip(a[1]), public = 1)
if a[0].endswith("++"):
self.karmaup(a[0])
if a[0].endswith("--"):
self.karmadown(a[0])
if payload[0] == "!" and len(payload)>1:
if a[0].endswith("++"):
self.karmaup(a[0])
if a[0].endswith("--"):
self.karmadown(a[0])
if payload[0] == "!" and len(payload)>1:
- self.do_command(
self.channel
, string.strip(payload[1:]), public=1)
+ self.do_command(
nm_to_n(evt.source())
, string.strip(payload[1:]), public=1)
if payload[0] == "~" and len(payload)>1:
if payload[0] == "~" and len(payload)>1:
- self.do_command(
self.channel
, string.strip(payload[1:]), public=1)
+ self.do_command(
nm_to_n(evt.source())
, string.strip(payload[1:]), public=1)
# And now bot commands;
# And now bot commands;