dont respond twice to dms
This commit is contained in:
parent
00aabe2634
commit
2f36def1ee
1 changed files with 4 additions and 4 deletions
8
bot.py
8
bot.py
|
@ -88,10 +88,10 @@ class Oven(pydle.Client):
|
|||
|
||||
return account in self.admins
|
||||
|
||||
async def on_private_message(self, trash, source, msg):
|
||||
if source != self.nickname:
|
||||
for i in self.raw:
|
||||
await self.raw[i](self, source, source, msg)
|
||||
#async def on_private_message(self, trash, source, msg):
|
||||
# if source != self.nickname:
|
||||
# for i in self.raw:
|
||||
# await self.raw[i](self, source, source, msg)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
Loading…
Reference in a new issue