]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/messages.h
Limit the number of message targes, and suppress duplicates
[ngircd-alex.git] / src / ngircd / messages.h
index 3a91c1838998ec1a85dba3f10978ca2a82a21563..90292a2b3aae492020b77c7e6b68a7e61a09a7f3 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * ngIRCd -- The Next Generation IRC Daemon
- * Copyright (c)2001-2012 Alexander Barton (alex@barton.de) and Contributors.
+ * Copyright (c)2001-2014 Alexander Barton (alex@barton.de) and Contributors.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -21,7 +21,8 @@
 #define RPL_YOURHOST_MSG               "002 %s :Your host is %s, running version ngircd-%s (%s/%s/%s)"
 #define RPL_CREATED_MSG                        "003 %s :This server has been started %s"
 #define RPL_MYINFO_MSG                 "004 %s %s ngircd-%s %s %s"
-#define RPL_ISUPPORT1_MSG              "005 %s RFC2812 IRCD=ngIRCd CHARSET=UTF-8 CASEMAPPING=ascii PREFIX=(qaohv)~&@%%+ CHANTYPES=#&+ CHANMODES=beI,k,l,imMnOPQRstVz CHANLIMIT=#&+:%d :are supported on this server"
+#define RPL_ISUPPORTNET_MSG            "005 %s NETWORK=%s :is my network name"
+#define RPL_ISUPPORT1_MSG              "005 %s RFC2812 IRCD=ngIRCd CHARSET=UTF-8 CASEMAPPING=ascii PREFIX=(qaohv)~&@%%+ CHANTYPES=%s CHANMODES=beI,k,l,imMnOPQRstVz CHANLIMIT=%s:%d :are supported on this server"
 #define RPL_ISUPPORT2_MSG              "005 %s CHANNELLEN=%d NICKLEN=%d TOPICLEN=%d AWAYLEN=%d KICKLEN=%d MODES=%d MAXLIST=beI:%d EXCEPTS=e INVEX=I PENALTY :are supported on this server"
 
 #define RPL_TRACELINK_MSG              "200 %s Link %s-%s %s %s V%s %ld %d %d"
 #define RPL_WHOISIDLE_MSG              "317 %s %s %lu %lu :seconds idle, signon time"
 #define RPL_ENDOFWHOIS_MSG             "318 %s %s :End of WHOIS list"
 #define RPL_WHOISCHANNELS_MSG          "319 %s %s :"
+#define RPL_LISTSTART_MSG              "321 %s Channel :Users  Name"
 #define RPL_LIST_MSG                   "322 %s %s %ld :%s"
 #define RPL_LISTEND_MSG                        "323 %s :End of LIST"
 #define RPL_CHANNELMODEIS_MSG          "324 %s %s +%s"
 #define RPL_CREATIONTIME_MSG           "329 %s %s %ld"
+#define RPL_WHOISLOGGEDIN_MSG          "330 %s %s %s :is logged in as"
 #define RPL_NOTOPIC_MSG                        "331 %s %s :No topic is set"
 #define RPL_TOPIC_MSG                  "332 %s %s :%s"
 #define RPL_TOPICSETBY_MSG             "333 %s %s %s %u"
-#define RPL_WHOISBOT_MSG               "335 %s %s :is a IRC Bot"
+#define RPL_WHOISBOT_MSG               "335 %s %s :is an IRC Bot"
 #define RPL_INVITING_MSG               "341 %s %s %s%s"
-#define RPL_INVITELIST_MSG             "346 %s %s %s"
+#define RPL_INVITELIST_MSG             "346 %s %s %s %s %d"
 #define RPL_ENDOFINVITELIST_MSG                "347 %s %s :End of channel invite list"
-#define RPL_EXCEPTLIST_MSG             "348 %s %s %s"
+#define RPL_EXCEPTLIST_MSG             "348 %s %s %s %s %d"
 #define RPL_ENDOFEXCEPTLIST_MSG                "349 %s %s :End of channel exception list"
 #define RPL_VERSION_MSG                        "351 %s %s-%s.%s %s :%s"
 #define RPL_WHOREPLY_MSG               "352 %s %s %s %s %s %s %s :%d %s"
@@ -85,7 +88,7 @@
 #define RPL_LINKS_MSG                  "364 %s %s %s :%d %s"
 #define RPL_ENDOFLINKS_MSG             "365 %s %s :End of LINKS list"
 #define RPL_ENDOFNAMES_MSG             "366 %s %s :End of NAMES list"
-#define RPL_BANLIST_MSG                        "367 %s %s %s"
+#define RPL_BANLIST_MSG                        "367 %s %s %s %s %d"
 #define RPL_ENDOFBANLIST_MSG           "368 %s %s :End of channel ban list"
 #define RPL_ENDOFWHOWAS_MSG            "369 %s %s :End of WHOWAS list"
 #define RPL_INFO_MSG                   "371 %s :%s"
 #define ERR_CANNOTSENDTOCHAN_MSG       "404 %s %s :Cannot send to channel"
 #define ERR_TOOMANYCHANNELS_MSG                "405 %s %s :You have joined too many channels"
 #define ERR_WASNOSUCHNICK_MSG          "406 %s %s :There was no such nickname"
+#define ERR_TOOMANYTARGETS_MSG         "407 %s :Too many recipients"
 #define ERR_NOORIGIN_MSG               "409 %s :No origin specified"
 #define ERR_INVALIDCAP_MSG             "410 %s %s :Invalid CAP subcommand"
 #define ERR_NORECIPIENT_MSG            "411 %s :No recipient given (%s)"
 #define ERR_NOTEXTTOSEND_MSG           "412 %s :No text to send"
-#define ERR_WILDTOPLEVEL               "414 %s :Wildcard in toplevel domain"
+#define ERR_WILDTOPLEVEL_MSG           "414 %s :Wildcard in toplevel domain"
 #define ERR_UNKNOWNCOMMAND_MSG         "421 %s %s :Unknown command"
 #define ERR_NOMOTD_MSG                 "422 %s :MOTD file is missing"
 #define ERR_NONICKNAMEGIVEN_MSG                "431 %s :No nickname given"
 #define ERR_USERONCHANNEL_MSG          "443 %s %s %s :is already on channel"
 #define ERR_SUMMONDISABLED_MSG         "445 %s :SUMMON has been disabled"
 #define ERR_USERSDISABLED_MSG          "446 %s :USERS has been disabled"
+#define ERR_NONICKCHANGE_MSG           "447 %s :Cannot change nickname while on %s(+N)"
 #define ERR_NOTREGISTERED_MSG          "451 %s :Connection not registered"
 #define ERR_NOTREGISTEREDSERVER_MSG    "451 %s :Connection not registered as server link"
 #define ERR_NEEDMOREPARAMS_MSG         "461 %s %s :Syntax error"
 #define ERR_BADCHANNELKEY_MSG          "475 %s %s :Cannot join channel (+k) -- Wrong channel key"
 #define ERR_NOCHANMODES_MSG            "477 %s %s :Channel doesn't support modes"
 #define ERR_NEEDREGGEDNICK_MSG         "477 %s %s :Cannot send to channel (+M) -- You need to be identified to a registered account to message this channel"
-#define ERR_LISTFULL_MSG               "478 %s %s %sChannel list is full (%d)"
+#define ERR_LISTFULL_MSG               "478 %s %s %s :Channel list is full (%d)"
 #define ERR_NOPRIVILEGES_MSG           "481 %s :Permission denied"
 #define ERR_CHANOPRIVSNEEDED_MSG       "482 %s %s :You are not channel operator"
 #define ERR_CHANOPPRIVTOOLOW_MSG       "482 %s %s :Your privileges are too low"
 #define ERR_UMODEUNKNOWNFLAG_MSG       "501 %s :Unknown mode"
 #define ERR_UMODEUNKNOWNFLAG2_MSG      "501 %s :Unknown mode \"%c%c\""
 #define ERR_USERSDONTMATCH_MSG         "502 %s :Can't set/get mode for other users"
+#define ERR_USERNOTONSERV_MSG          "504 %s %s :User is not on this server"
 #define ERR_NOINVITE_MSG               "518 %s :Cannot invite to %s (+V)"
 
 #ifdef ZLIB