Well I figured out where the no such nick/channel messages are coming from, but I still have no idea how to fix them.