What OS? mIRC version? Sounds like a missing ntoh().