summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Rosdahl <joel@rosdahl.net>2011-08-20 21:01:43 +0200
committerJoel Rosdahl <joel@rosdahl.net>2011-08-21 15:57:19 +0200
commit326d903503c574f4fdbc2dcc9a7f3ab9dff8627d (patch)
treecde02a16c6c1573070f41ce4b3a6f39dacaea1f5
parenteef39a6e38162a950e2b0b7c87803c8ce2dbd2b4 (diff)
downloadminiircd-326d903503c574f4fdbc2dcc9a7f3ab9dff8627d.tar.gz
miniircd-326d903503c574f4fdbc2dcc9a7f3ab9dff8627d.zip
Understand but ignore AWAY commands
-rwxr-xr-xminiircd4
1 files changed, 4 insertions, 0 deletions
diff --git a/miniircd b/miniircd
index ca0615d..a0f3cf1 100755
--- a/miniircd
+++ b/miniircd
@@ -245,6 +245,9 @@ class Client(object):
self.__handleCommand = self.__commandHandler
def __commandHandler(self, command, arguments):
+ def awayHandler():
+ pass
+
def joinHandler():
if len(arguments) < 1:
self.message(
@@ -607,6 +610,7 @@ class Client(object):
username))
handlerTable = {
+ "AWAY": awayHandler,
"JOIN": joinHandler,
"LIST": listHandler,
"MODE": modeHandler,