is this for a bot? it may be because if your bot is not in the room you are messageing and the room has mode +n( no outside msgs ) it wont work.