diff options
Diffstat (limited to 'wmd/actions/echo.py')
| -rw-r--r-- | wmd/actions/echo.py | 11 |
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 @@ | |||
| 1 | from wmd.actions import Action | ||
| 2 | |||
| 3 | import settings | ||
| 4 | |||
| 5 | class 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 | ||