mirror of
https://git.wownero.com/wownero/tippero.git
synced 2024-08-15 00:33:14 +00:00
Add a message event
This commit is contained in:
parent
95cda86928
commit
c8470260f0
1 changed files with 2 additions and 0 deletions
|
@ -314,6 +314,8 @@ class IRCNetwork(Network):
|
|||
self.update_last_active_time(chan,GetNick(who))
|
||||
# resplit to avoid splitting text that contains ':'
|
||||
text = data.split(' :',1)[1]
|
||||
if self.on_event:
|
||||
self.on_event('message',link=Link(self,User(self,GetNick(who)),Group(self,chan)),message=text)
|
||||
exidx = text.find('!')
|
||||
if exidx != -1 and len(text)>exidx+1 and text[exidx+1] in string.ascii_letters and self.is_acceptable_command_prefix(text[:exidx]):
|
||||
cmd = text.split('!')[1]
|
||||
|
|
Loading…
Reference in a new issue