summaryrefslogtreecommitdiffstats
path: root/wmd/actions/echo.py
blob: dfaff7f7724bf107f10a6d8a5dc085e4ebe18ec8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
from wmd.actions import Action

import settings

class EchoAction(Action):
    def recv_msg(self, irc, obj_data):
        channel = obj_data.get_username()

        args = obj_data.params.split(" ")
        if "PRIVMSG" in obj_data.command and settings.NICKNAME in args[1]:
            irc.privmsg(channel, " ".join(args[2:]))