swinging both ways
This commit is contained in:
parent
1261ec1fd4
commit
c0075e2fbe
2
main.py
2
main.py
|
@ -28,7 +28,7 @@ class bird_inst():
|
||||||
message.manual(":"+msg.parameters[0], "PRIVMSG", [msg.prefix[1:].split("!")[0], ":\x01dorfl bot\x01"]).send(ctx.socket)
|
message.manual(":"+msg.parameters[0], "PRIVMSG", [msg.prefix[1:].split("!")[0], ":\x01dorfl bot\x01"]).send(ctx.socket)
|
||||||
if msg.command == "PRIVMSG" and ("py-ctcp" not in msg.prefix):
|
if msg.command == "PRIVMSG" and ("py-ctcp" not in msg.prefix):
|
||||||
pm = privmsg.parse(msg)
|
pm = privmsg.parse(msg)
|
||||||
self.send_post(pm.fr.split("!")[0]+": "+pm.bod)
|
self.send_post("<"+pm.fr.split("!")[0]+"> "+pm.bod)
|
||||||
threading.Thread(target=self.irc.run, kwargs={"event_handler": irc_handler}, daemon=True).start()
|
threading.Thread(target=self.irc.run, kwargs={"event_handler": irc_handler}, daemon=True).start()
|
||||||
def auth(self, name, passwd):
|
def auth(self, name, passwd):
|
||||||
h = {
|
h = {
|
||||||
|
|
Loading…
Reference in New Issue