I looked up for this issue, seems like you should put a integer ( UNIX socket constant ) there to let it work, but from your later code, I assume you just want to give messages but this optional parameter, so you could change
irc.send ('NICK', name + '\r\n')
irc.send ( 'USER', name, name, name, ':Python IRC\r\n' )
to
irc.send ('NICK' + name + '\r\n')
irc.send ( 'USER' + name + name + name + ':Python IRC\r\n' )
I guess you're mixing python
's string concatenation operator +
with ,
from some other languages :)
I tested the changed version in my box, it won't cause the error anymore, though I still don't know what this code does, could you please explain a bit :)