Fire a fake event when we send a message

This commit is contained in:
2022-08-09 07:20:30 +01:00
parent 719f014265
commit 220ce976f2
2 changed files with 28 additions and 0 deletions

View File

@@ -252,6 +252,10 @@ class IRCBot(IRCClient):
def action(self, user, channel, msg):
self.event(type="action", muser=user, channel=channel, msg=msg)
def sendmsg(self, channel, msg):
self.event(type="self", mtype="msg", channel=channel, nick=self.nickname, msg=msg)
self.msg(channel, msg)
def get(self, var):
try:
result = getattr(self, var)