Commit Graph

136 Commits

Author SHA1 Message Date
Alexander Barton 79e1ec2b1e New numeric RPL_STATSCONN (250): display connection statistics
The RPL_STATSCONN numeric (250) displays information about the
highest simoultaneous connection count and the number of all
accepted connections since the daemon started up.

Used by ircd-Hybrid, Bahamut, and Unreal for example.
2010-04-23 23:30:14 +02:00
Alexander Barton 9f58418765 Implemented new "secure clients only" channel mode: +z
Only clients using a SSL encrypted connection to the server are
allowed to join such a channel.

But please note three things:

a) already joined clients are not checked when setting this mode,
b) IRC operators are always allowed to join every channel, and
c) remote clients using a server not supporting this mode are not
   checked either and therefore always allowed to join.
2010-01-17 14:20:07 +01:00
Alexander Barton f58c8b94d9 Show our name (IRCD=ngIRCd) in ISUPPORT (005) numeric
Inspired by Hyperion IRC daemon.
2010-01-16 14:59:07 +01:00
Dana Dahlstrom 3a7d59c1ac misspelling in ERR_NORECIPIENT reply 2009-03-25 20:44:40 +01:00
Florian Westphal 5a3128243f irc.c: reject masks with wildcard after last dot
RFC 2812 says in section 3.3.1 ("Private Messages"):

The mask MUST have at least 1 (one) "." in it and no wildcards
following the last ".".
2009-01-18 00:36:38 +01:00
Alexander Barton 3243d9ee44 Implement the IRC command "SERVLIST"
The IRC command "SERVLIST" lists all the registered services, see RFC 2811, section 3.5.1.
The syntax is "SERVLIST [<mask> [<type>]]". The parameter <type> is not used by ngIRCd at
the moment, all registered services are of type 0 (which is the default when omitted).
2008-11-19 18:16:26 +01:00
Alexander Barton 2cc21caf32 Implement local channels (prefix "&")
This patch implements server-local channels, prefix "&", that are only
visible to users of the same local server and not in the network.

Patch written by Scott Perry (2008-06-04), see:
 - http://arthur.barton.de/cgi-bin/bugzilla/show_bug.cgi?id=87
 - http://arthur.barton.de/cgi-bin/bugzilla/attachment.cgi?id=24&action=view
2008-11-17 21:52:56 +01:00
Scott Perry 70254a5553 This patch implements a (maybe) compliant WHOWAS command.
It is hard to test this in the test suite because we 1) shouldn't rely on
previous tests populating WHOWAS and 2) don't connect a user for more than 30
seconds.

Also makes WHOWAS return ERR_NONICKNAMEGIVEN_MSG as implied by RFC.
2008-05-12 18:56:31 +02:00
Alexander Barton 4e56e5341f Implement IRC commands SERVICE, SERVLIST, and SQUERY as dummy functions
SERVICE, SERVLIST, and SQUERY are required by RFC 2812 (it states in
section 3 that "all commands described in this section MUST be implemented
by any server for this protocol." -- So we implement them without (much)
actual functionality ...
2008-05-05 18:06:43 +02:00
Dana Dahlstrom 97cc58fb13 Invite: prefix last argument with colon when necessary. 2008-05-05 16:12:41 +02:00
Ali Shemiran 530112b114 Add support for modeless channels
Add support for modeless channels (+channels).

[fw@strlen.de:
 - integrate test cases
 - don't support +channels when compiled with --strict-rfc
 - do not set +o mode for channel creator
 - force +nt mode when channel is created ]
2008-05-01 15:55:12 +02:00
Alexander Barton ddecfcd831 Implemented IRC commands INFO, USERS (dummy), and SUMMON (dummy). 2008-02-26 23:49:33 +01:00
Florian Westphal 8974e90552 implement '/STAT u' (uptime) 2007-12-11 11:29:43 +00:00
Alexander Barton d4ed056147 Numeric 317: implemented "signon time" (displayed in WHOIS result). 2007-10-04 15:03:55 +00:00
Florian Westphal 5877bca4bc fix RPL_LOCALUSERS_MSG (%ld -> %lu) 2006-12-02 14:24:36 +00:00
Florian Westphal 018e351630 -Whitespace Damage; Client_OperCount(), Client_UnknownCount(), Client_MyServerCount() return unsigned long 2006-10-07 10:40:52 +00:00
Florian Westphal 6e105bf87e channel maxusers now unsigned long 2006-10-06 21:32:58 +00:00
Alexander Barton 257312b102 Changed Numerics 265 and 266 to follow ircd 2.11.x "standards". 2006-10-01 19:13:32 +00:00
Alexander Barton bed98979dc Enhanced ISUPPORT message (numeric 005). 2006-10-01 19:03:05 +00:00
Alexander Barton ca32c1b311 Implementec numeric "333": Time and user name who set a channel topic. 2005-09-02 12:50:25 +00:00
Alexander Barton bdaf53e799 Fixed TRACE: don't output "Serv" lines for ourself; display more info. 2004-02-28 02:18:16 +00:00
Alexander Barton c40592d2ce Removed "USE_" prefixes of configuration #defines. 2003-12-26 15:55:07 +00:00
Alexander Barton 7646739431 New message constant RPL_TRACEOPERATOR_MSG. Changed RPL_TRACESERVER_MSG. 2003-03-19 21:16:16 +00:00
Alexander Barton 42c4e6c7b1 - Added support for "TRACE" command. 2003-01-13 18:56:30 +00:00
Alexander Barton c428ac7563 - Renamed RPL_FEATURE_MSG to RPL_ISUPPORT_MSG. 2003-01-02 17:55:28 +00:00
Alexander Barton d19813cc4b - new message ERR_CANTKILLSERVER_MSG. 2002-12-27 13:15:16 +00:00
Alexander Barton ab44e1c6cc - new messages: RPL_FEATURE, RPL_LOCALUSERS and RPL_NETUSERS. 2002-12-22 23:32:05 +00:00
Alexander Barton d9e3f834d7 - fixed RPL_STATSCOMMANDS_MSG 2002-12-18 14:03:14 +00:00
Alexander Barton 892144dc71 - new constant RPL_YOURESERVICE_MSG, ERR_CHANNELISFULL_MSG, ERR_BADCHANNELKEY_MSG.
- fixed ERR_PASSWDMISMATCH_MSG.
2002-12-16 23:11:59 +00:00
Alexander Barton 9f74b95015 - new message ERR_TOOMANYCHANNELS_MSG. 2002-12-13 17:51:41 +00:00
Alexander Barton c7f075236b - new file header format (in english). 2002-12-12 12:23:43 +00:00
Alexander Barton 1e5fa014ba - RPL_STATSLINKINFO_MSG ueberarbeitet, RPL_STATSLINKINFOZIP_MSG eingefuehrt. 2002-12-02 13:17:46 +00:00
Alexander Barton 15d78412bc - neue Konstante RPL_TIME_MSG. 2002-11-24 18:45:31 +00:00
Alexander Barton 60f14cca38 - neue Meldungen: RPL_STATSLINKINFO, RPL_STATSCOMMANDS, RPL_ENDOFSTATS,
RPL_WHOWASUSER, RPL_ENDOFWHOWAS und ERR_WASNOSUCHNICK.
2002-11-22 23:08:04 +00:00
Alexander Barton c0e7a0124d - RPL_UMODEIS hat Code 221, nicht 211 ... *argl* 2002-11-22 22:56:58 +00:00
Alexander Barton 14e870e2ec - Code-Formatierung korrigiert (da waren Tabs wo keine hin gehoerten). 2002-11-04 19:25:26 +00:00
Alexander Barton c49bee8d0b - RPL_YOURHOST_MSG nochmals leicht geaendert ... 2002-10-11 02:32:09 +00:00
Alexander Barton 452d98f329 - RPL_YOURHOST_MSG ist nun ircII-kompatibel :-) 2002-10-11 02:16:14 +00:00
Alexander Barton c7b55aa6f4 - verwendete Datentypen aufgeraumt: beispielsweise INT32 ist nun oft ein LONG. 2002-10-09 16:53:02 +00:00
Alexander Barton a33105dcd1 - Syntax von RPL_MYINFO_MSG korrigiert (liefert nun vier Parameter). 2002-10-03 15:49:17 +00:00
Alexander Barton 66b461a5ab - neue Konstanten: RPL_ADMINME_MSG, RPL_ADMINLOC1_MSG, RPL_ADMINLOC2_MSG, RPL_ADMINEMAIL_MSG. 2002-09-16 09:23:40 +00:00
Alexander Barton a6b61df983 - neue Konstanten fuer Invite- und Banlists: RPL_xxxLIST_MSG, RPL_ENDOFxxx_MSG
- neue Message ERR_UNKNOWNMODE_MSG.
2002-07-15 16:33:57 +00:00
Alexander Barton 646acbc0b2 - neue Konstanten ERR_INVITEONLYCHAN_MSG und ERR_BANNEDFROMCHAN_MSG. 2002-06-02 15:22:40 +00:00
Alexander Barton ef328ab392 - neue Konstanten RPL_INVITING_MSG und ERR_USERONCHANNEL_MSG. 2002-06-02 14:15:50 +00:00
Alexander Barton d5b4c6dfd3 - neue Konstante ERR_USERNOTINCHANNEL_MSG definiert. 2002-06-01 14:40:00 +00:00
Alexander Barton b5d74751b1 - Konstanten aufgeraeumt, unnoetige entfernt. 2002-06-01 11:10:40 +00:00
Alexander Barton f7327524fc - Weitere Anpassungen an pre-ANSI-Compiler. 2002-05-30 16:52:20 +00:00
Alexander Barton fba52c45e8 - Aenderungen fuer pre-ANSI-Compiler. 2002-05-27 12:35:19 +00:00
Alexander Barton 28a58717be - zwei neue Konstanten definiert: RPL_LIST_MSG und RPL_LISTEND_MSG. 2002-04-23 19:50:06 +00:00
Alexander Barton 882c91280e - Versions-String um "Vendor" erweitert. 2002-03-12 22:08:24 +00:00
Alexander Barton 7049b60af4 - der System-Typ wird nun wieder korrekt ermittelt und verwendet. 2002-03-12 15:19:12 +00:00
Alexander Barton ca33cbda05 - externe portab-Header werden nicht mehr benoetigt/benutzt, dadurch
einige Aenderungen an diversen Source-Dateien und Headern.
- Dateien enthalten keine CVS-History mehr.
2002-03-12 14:37:51 +00:00
Alexander Barton 9d5551ba6d - neue Konstanten RPL_ENDOFWHO_MSG und RPL_WHOREPLY_MSG definiert. 2002-03-03 19:41:46 +00:00
Alexander Barton d58e22a3ea - neue Text-Konstante: ERR_NOTONCHANNEL_MSG 2002-02-27 20:33:01 +00:00
Alexander Barton 83177581e4 - neue Text-Konstanten RPL_UNAWAY_MSG und RPL_NOWAWAY_MSG. 2002-02-27 18:23:24 +00:00
Alexander Barton 82da6d2ff1 - neue Text-Konstante ERR_CANNOTSENDTOCHAN_MSG eingefuehrt. 2002-02-27 17:05:13 +00:00
Alexander Barton 5a8a789511 - Konstanten sortiert, neue Konstante RPL_VERSION und RPL_VERSION_MSG. 2002-02-17 23:39:24 +00:00
Alexander Barton 1b1b718e7e - neue Text-Konstante ERR_UMODEUNKNOWNFLAG2_MSG. 2002-02-17 17:42:53 +00:00
Alexander Barton b10d05f2d2 - RPL_MYINFO_MSG korrigiert. 2002-02-13 23:04:50 +00:00
Alexander Barton f908e78118 - unterstuetzte User- und Channel-Modes stehen nun in Konstanten. 2002-02-13 17:45:57 +00:00
Alexander Barton 207937da2a - neue Message ERR_CHANOPRIVSNEEDED_MSG definiert. 2002-02-11 23:33:12 +00:00
Alexander Barton 617cdf068e - neue Nachricht RPL_CHANNELMODEIS definiert. 2002-02-11 15:48:39 +00:00
Alexander Barton 5c48cbff1d - neue Text-Konstante RPL_UMODEISCHAN_MSG. 2002-02-06 16:51:39 +00:00
Alexander Barton 5a0f118df0 - RPL_WHOISCHANNELS_MSG korrigiert. 2002-01-29 00:14:05 +00:00
Alexander Barton 8316d98b16 - RPL_NAMREPLY_MSG an tatsaechliche Implementierung angepasst ;-) 2002-01-28 13:06:19 +00:00
Alexander Barton 791301dc7d - neue Defines fuer RPL_TOPIC und RPL_NOTOPIC. 2002-01-27 17:13:37 +00:00
Alexander Barton 4c32a6cebd - ERR_NOSUCHCHANNEL hinzugefuegt. 2002-01-21 00:02:34 +00:00
Alexander Barton 8d48f07de1 - RPL_LUSERME_MSG erweitert, kleinere Aenderungen. 2002-01-16 22:09:52 +00:00
Alexander Barton c2ee5437da - LINKS implementiert, LUSERS begonnen. 2002-01-11 23:50:55 +00:00
Alexander Barton 0b15709e4c - neue Nachricht ERR_NOSUCHSERVER_MSG definiert. 2002-01-05 23:23:44 +00:00
Alexander Barton 0d2c0db71a - neue Message ERR_NOTREGISTEREDSERVER_MSG. 2002-01-03 02:24:21 +00:00
Alexander Barton 1547f76cfd - Copyright-Texte aktualisiert. 2002-01-02 02:42:58 +00:00
Alexander Barton 6cf1ae793c - "o" zu den unterstuetzten Modes hinzugefuegt. 2001-12-31 16:00:57 +00:00
Alexander Barton fb9d6ce174 - neuer Befehl NAMES, kleinere Bugfixes.
- Bug bei PING behoben: war zu restriktiv implementiert :-)
2001-12-31 15:33:13 +00:00
Alexander Barton 804b1ec498 - viele neue Befehle (WHOIS, ISON, OPER, DIE, RESTART),
- neuen Header "defines.h" mit (fast) allen Konstanten.
- Code Cleanups und viele "kleine" Aenderungen & Bugfixes.
2001-12-31 02:18:51 +00:00
Alexander Barton 5990d9081a - RPL_MYINFO_MSG um unterstuetzte User-Modes ergaengz. 2001-12-30 19:25:39 +00:00
Alexander Barton ac9da09e87 - der Server meldet nun eine ordentliche "Start-Zeit". 2001-12-30 11:42:00 +00:00
Alexander Barton 5c80692769 - Texte ergaenzt, einige Bugs behoben (Leerzeichen falsch gesetzt, z.B.) 2001-12-29 03:06:56 +00:00
Alexander Barton 72ebf4f260 - neue Befehle PRIVMSG, NOTICE, PING. 2001-12-27 19:17:26 +00:00
Alexander Barton 9d74f9007e - RPL_WELCOME an Client_GetID() angepasst. 2001-12-27 16:56:06 +00:00
Alexander Barton 574ae82ca4 - MOTD-Datei ist nun konfigurierbar und wird gelesen. 2001-12-26 22:48:53 +00:00
Alexander Barton 6cb785e0a7 - in ERR_NOTREGISTERED_MSG fehlte ein "%s" - jetzt steht auch hier der Nick. 2001-12-26 03:51:13 +00:00
Alexander Barton e0c5ecee7e - Format der Meldungen ueberarbeitet: fast immer ist nun der Nick enthalten. 2001-12-26 03:22:40 +00:00
Alexander Barton b02f6b423c - neue Message: ERR_NICKNAMEINUSE[_MSG]. 2001-12-25 19:20:11 +00:00
Alexander Barton 660ef2307a - einige Messages korrigiert, andere ergaenzt (u.a. fuer MOTD). 2001-12-24 01:30:46 +00:00
Alexander Barton a0fd570d93 - Ich habe diesen Header begonnen. 2001-12-23 21:53:32 +00:00