Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # socketconn.py
- import znc
- class conn(znc.Socket):
- def OnReadLine(self, line):
- self.GetModule().PutStatus(line)
- class networkconn(znc.Module):
- def OnModCommand(self, cmd):
- sock = self.CreateSocket(conn)
- sock.Connect('127.0.0.1', 1079)
- sock.Write("{0}\n".format(cmd))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement