sbp / saxo

Quick and flexible irc bot, extensible in any language
http://inamidst.com/saxo/
Apache License 2.0
52 stars 22 forks source link

Make saxo work on Unread IRCd #2

Closed sbp closed 10 years ago

sbp commented 11 years ago
diff --git a/plugins/core.py b/plugins/core.py
index 6d96afa..370c07b 100644
--- a/plugins/core.py
+++ b/plugins/core.py
@@ -12,6 +12,9 @@ def connected(irc):
def first(irc):
irc.send("NICK", irc.config["nick"])
irc.send("USER", irc.config["nick"], "+iw", irc.config["nick"], "saxo")
+
+@saxo.event("251")
+def join(irc):
for channel in irc.config["channels"].split(" "):
irc.send("JOIN", channel)
irc.send("WHO", irc.config["nick"])
@@ -26,4 +29,4 @@ def who(irc):
@saxo.event("PING")
def ping(irc):
- irc.send("PONG", irc.config["nick"])
+ irc.send("PONG", irc.config["nick"], irc.parameters[0])

Ugh, why doesn't pasting preserve the indentation?

Oh well, whatever. Software.

sbp commented 11 years ago

Contributed by @dpk.

sbp commented 10 years ago

Fixed in #41 and f5baf31.