openbsd-ports/devel/py-silc/patches/patch-examples_demo_py
2007-10-02 17:35:48 +00:00

23 lines
773 B
Plaintext

$OpenBSD: patch-examples_demo_py,v 1.3 2007/10/02 17:35:48 martynas Exp $
--- examples/demo.py.orig Mon Jul 10 02:57:15 2006
+++ examples/demo.py Sun Jul 1 22:52:11 2007
@@ -29,6 +29,10 @@ class SupySilcClient(silc.SilcClient):
def _cache_channel(self, channel):
self.channels[channel.channel_name] = channel
+ def running(self):
+ print 'SILC: Running.'
+ self.connect_to_server(sys.argv[1], 706)
+
def connected(self):
print 'SILC: Connected to server.'
self.isconnected = True
@@ -209,7 +213,6 @@ class SupySilcClient(silc.SilcClient):
if __name__ == "__main__":
import sys
c = SupySilcClient()
- c.connect_to_server(sys.argv[1], 706)
try:
while True:
c.run_one()