Difference between modes?

These are old archives. They are kept for historic purposes only.
Post Reply
Oyarsa
Posts: 54
Joined: Wed Feb 14, 2007 12:35 pm
Location: irc.otherworlders.org
Contact:

Difference between modes?

Post by Oyarsa »

I'm not quite sure what the difference is between the following 2 channel modes.

+c and +S
Jobe
Official supporter
Posts: 1180
Joined: Wed May 03, 2006 7:09 pm
Location: United Kingdom

Post 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
Oyarsa
Posts: 54
Joined: Wed Feb 14, 2007 12:35 pm
Location: irc.otherworlders.org
Contact:

Post by Oyarsa »

ah ... so +c will block the entire message so only the sender sees it.
Jobe
Official supporter
Posts: 1180
Joined: Wed May 03, 2006 7:09 pm
Location: United Kingdom

Post 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.
Post Reply