Name: The_Sussman !9dc0/Qropc 2008-03-02 13:58
Please paste what's in your paste buffer here!
def parse_message(msg):
msg = msg.split(' :', 2)
tmp = msg[0].split(' ')
return {'message': len(msg) > 1 and msg[1] or None,
'source': tmp[0].startswith(':') and tmp.pop(0)[1:] or None,
'command': tmp.pop(0),
'argv': tmp}