Page 1 of 1
Difference between modes?
Posted: Sat Feb 17, 2007 1:45 pm
by Oyarsa
I'm not quite sure what the difference is between the following 2 channel modes.
+c and +S
Posted: Sat Feb 17, 2007 2:17 pm
by Jobe
+c blocks colour formatting codes in channel messages and +S simply strips the colour formatting.
So with +c any message with colour formatting in it doesnt get to the channel and nobody except the sender sees it and a message saying it has been blocked.
With +S the colour formatting is removed before the message gets to the other users in the channel so they see the message without the colour formatting.
+c = Block, +S = strip/remove
Posted: Sat Feb 17, 2007 2:54 pm
by Oyarsa
ah ... so +c will block the entire message so only the sender sees it.
Posted: Sat Feb 17, 2007 3:13 pm
by Jobe
Correct.
The reason only the sender sees it is because of the way IRC deals with PRIVMSG commands (messages to users or channels). Because a PRIVMSG is not relayed back to the client when the client sends one, most clients display the message on the screen as if it had been recieved anyway. Then the client sends the message to the IRCd which then parses it and does what it needs to before passing it on to other servers and users as apropriate.