summaryrefslogtreecommitdiffstats
path: root/wmd/actions/echo.py
diff options
context:
space:
mode:
Diffstat (limited to 'wmd/actions/echo.py')
-rw-r--r--wmd/actions/echo.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/wmd/actions/echo.py b/wmd/actions/echo.py
new file mode 100644
index 0000000..dfaff7f
--- /dev/null
+++ b/wmd/actions/echo.py
@@ -0,0 +1,11 @@
1from wmd.actions import Action
2
3import settings
4
5class EchoAction(Action):
6 def recv_msg(self, irc, obj_data):
7 channel = obj_data.get_username()
8
9 args = obj_data.params.split(" ")
10 if "PRIVMSG" in obj_data.command and settings.NICKNAME in args[1]:
11 irc.privmsg(channel, " ".join(args[2:])) \ No newline at end of file