Browse Source

os._exit takes one argument

master
jcao219 14 years ago
parent
commit
d53e9e482d
  1. 2
      oyoyo/client.py

2
oyoyo/client.py

@ -229,7 +229,7 @@ class IRCClient(object):
logging.info('closing socket') logging.info('closing socket')
self.socket.close() self.socket.close()
import os import os
os._exit() os._exit(0)
def msg(self, user, msg): def msg(self, user, msg):
for line in msg.split('\n'): for line in msg.split('\n'):
maxchars = 494 - len(self.nickname+self.ident+self.hostmask+user) maxchars = 494 - len(self.nickname+self.ident+self.hostmask+user)

Loading…
Cancel
Save