autoreply: Send NOTICEs instead of PRIVMSGs. #335

Closed
opened 2026-10-05 04:13:51 +02:00 by adam · 1 comment
Owner

See http://tools.ietf.org/html/rfc1459.html#section-4.4.2

4.4.2 Notice

      Command: NOTICE
   Parameters: <nickname> <text>

   The NOTICE message is used similarly to PRIVMSG.  The difference
   between NOTICE and PRIVMSG is that automatic replies must never be
   sent in response to a NOTICE message.  This rule applies to servers
   too - they must not send any error reply back to the client on
   receipt of a notice.  The object of this rule is to avoid loops
   between a client automatically sending something in response to
   something it received.  This is typically used by automatons (clients
   with either an AI or other interactive program controlling their
   actions) which are always seen to be replying lest they end up in a
   loop with another automaton.

   See PRIVMSG for more details on replies and examples.

I noticed this behaviour after attaching to my alternative connection after a long time. It had received message from bot and replied with the default string and it and the bot were looping with each other for three lines and I know that from the messages Error: Ciblia is not a valid command..

See http://tools.ietf.org/html/rfc1459.html#section-4.4.2 ``` 4.4.2 Notice Command: NOTICE Parameters: <nickname> <text> The NOTICE message is used similarly to PRIVMSG. The difference between NOTICE and PRIVMSG is that automatic replies must never be sent in response to a NOTICE message. This rule applies to servers too - they must not send any error reply back to the client on receipt of a notice. The object of this rule is to avoid loops between a client automatically sending something in response to something it received. This is typically used by automatons (clients with either an AI or other interactive program controlling their actions) which are always seen to be replying lest they end up in a loop with another automaton. See PRIVMSG for more details on replies and examples. ``` I noticed this behaviour after attaching to my alternative connection after a long time. It had received message from bot and replied with the default string and it and the bot were looping with each other for three lines and I know that from the messages `Error: Ciblia is not a valid command.`. <!-- github-sync-id:34497505 -->
adam closed this issue 2026-10-05 04:13:51 +02:00
Author
Owner

This is fixed, isn't this?

This is fixed, isn't this? <!-- github-comment-id:46812441 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/znc#335