- if( Req->argc != 0 ) return IRC_WriteStrClient( Client, ERR_NEEDMOREPARAMS_MSG, Client_ID( Client ), Req->command );
+#ifdef STRICT_RFC
+ if (Req->argc != 0)
+#else
+ if (Req->argc > 1)
+#endif
+ return IRC_WriteStrClient(Client, ERR_NEEDMOREPARAMS_MSG,
+ Client_ID(Client), Req->command);
+
+ /* Is a message given? */
+ if (Req->argc > 0) {
+ c = Conn_First();
+ while (c != NONE) {
+ cl = Conn_GetClient(c);
+ if (Client_Type(cl) == CLIENT_USER)
+ IRC_WriteStrClient(cl, "NOTICE %s :%s",
+ Client_ID(cl), Req->argv[0]);
+ c = Conn_Next(c);
+ }
+ }