In private message and DCC chat, nemubot don't require nemubot:
This commit is contained in:
parent
bc860ef837
commit
9a6c1fbb7c
3 changed files with 19 additions and 8 deletions
|
|
@ -34,7 +34,6 @@ class Server(threading.Thread):
|
|||
|
||||
threading.Thread.__init__(self)
|
||||
|
||||
@property
|
||||
def isDCC(self, to=None):
|
||||
return to is not None and to in self.dcc_clients
|
||||
|
||||
|
|
@ -215,11 +214,11 @@ class Server(threading.Thread):
|
|||
else:
|
||||
print (" Already connected.")
|
||||
|
||||
def treat_msg(self, line, srv = None):
|
||||
def treat_msg(self, line, srv = None, private = False):
|
||||
if srv is None:
|
||||
srv = self
|
||||
try:
|
||||
msg = message.Message (srv, line)
|
||||
msg = message.Message (srv, line, private)
|
||||
msg.treat (self.mods)
|
||||
except:
|
||||
print ("\033[1;31mERROR:\033[0m occurred during the processing of the message: %s" % line)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue