Page 1 of 1

ERR_CANNOTSENDTOCHAN

Posted: Sat Jan 07, 2006 5:31 pm
by JIVXor
When channel is +n and I want to send a privmsg :

Code: Select all

  raw 432:*:{ mode $$1 -n | privmsg $$1 bla bla | mode $$1 +n }
 
Not work, I guess I'm not using the $$1 well? In this case : RAW 432 the return value is : CHANNELNAME ?

Posted: Sat Jan 07, 2006 6:08 pm
by Mark
432 nickname :Erroneus Nickname

432 isn't the right raw numeric..

Try 404 (:servername 404 nickname #channel :No external channel messages (#channel))


-edit-
ah, and $1 is the nickname, $2 is the channel you're trying to send to.
Tip: As it seems you're using mIRC, type /debug @window. Everything that you send to or receive from the server will be in @window, easy to find out numerics and how the error messages are build.

Posted: Sat Jan 07, 2006 6:33 pm
by JIVXor
My bad, I was trying with the wrong RAW and I didn't realize,that's why the unknown errors, now it works. Thanks Mark.