Advertisement
Azelphur

Untitled

Nov 18th, 2011
381
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.31 KB | None | 0 0
  1. # socketconn.py
  2. import znc
  3. class conn(znc.Socket):
  4.     def OnReadLine(self, line):
  5.         self.GetModule().PutStatus(line)
  6.  
  7. class networkconn(znc.Module):
  8.     def OnModCommand(self, cmd):
  9.         sock = self.CreateSocket(conn)
  10.         sock.Connect('127.0.0.1', 1079)
  11.         sock.Write("{0}\n".format(cmd))
  12.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement