New method send_msg_verified that checks the user is on the message destination channel
This commit is contained in:
parent
1f5127e921
commit
05cf740151
2 changed files with 8 additions and 4 deletions
|
@ -86,7 +86,7 @@ class Message:
|
|||
|
||||
def send_msg (self, channel, msg, cmd = "PRIVMSG", endl = "\r\n"):
|
||||
if CREDITS[self.realname].speak():
|
||||
self.srv.send_msg (channel, msg, cmd, endl)
|
||||
self.srv.send_msg_verified (self.sender, channel, msg, cmd, endl)
|
||||
|
||||
def send_global (self, msg, cmd = "PRIVMSG", endl = "\r\n"):
|
||||
if CREDITS[self.realname].speak():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue