Module: ngircd.git
Branch: master
Commit: 3e3585708010cc0da22355aca84c9e79f8286e0b
URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=3e358570…
Author: Alexander Barton <alex(a)barton.de>
Date: Tue Feb 26 09:38:27 2013 +0100
doc/Services.txt: Update Anope status and URL
---
doc/Services.txt | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/doc/Services.txt b/doc/Services.txt
index f51bd48..dc0872f 100644
--- a/doc/Services.txt
+++ b/doc/Services.txt
@@ -44,10 +44,10 @@ Example:
Setting up Anope 1.9.x
~~~~~~~~~~~~~~~~~~~~~~
-Anope 1.9.8 or later (<http://www.anope.org/>; unreleased as of 2012-11-10)
+Anope 1.9.8 or later (<http://www.anope.org/>; unreleased as of 2013-02-26)
may be used with ngIRCd using the "ngircd" protocol module.
Until Anope 1.9.8 is released, you have to use the sources from the Anope
-development GIT tree, see <http://sourceforge.net/projects/anope/develop/>!
+development GIT tree, see <http://github.com/anope/anope>!
At least the following settings have to be tweaked, in addition to all the
settings marked as required by Anope:
Module: ngircd.git
Branch: master
Commit: b25fd8a98ca48abdabfe52ce3bfdd00a8f9fc003
URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=b25fd8a9…
Author: Alexander Barton <alex(a)barton.de>
Date: Sun Feb 24 18:53:33 2013 +0100
Commands.txt: Update description of the "KICK" command
---
doc/Commands.txt | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/doc/Commands.txt b/doc/Commands.txt
index 2967b43..92d25c7 100644
--- a/doc/Commands.txt
+++ b/doc/Commands.txt
@@ -441,11 +441,18 @@ Channel Commands
If the channel(s) do not exist, then they will be created.
- KICK
- KICK <channel> <nick> [<kick-message>]
+ KICK <channel>[,<channel>[,...]] <nickname>[,<nickname>[,...]] [<reason>]
.
- Remove <nick> from <channel>, optional with a <kick-message>.
+ Remove users(s) with <nickname>(s) from <channel>(s).
.
- Only <channel> operators are able to KICK.
+ There must be either exactly one <channel> parameter and multiple
+ <nickname> parameters, or as many <channel> parameters as there are
+ <nickname> parameters. The <reason> is shown to the users being
+ kicked, and the nickname of the current user is used when <reason>
+ is omitted.
+
+ References:
+ - RFC 2812, 3.2.8 "Kick command"
- LIST
LIST [<channels> [<server>]]
Module: ngircd.git
Branch: master
Commit: be08349dcb2ed3e89040112a241e022ee802baa4
URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=be08349d…
Author: Alexander Barton <alex(a)barton.de>
Date: Sun Feb 24 18:53:10 2013 +0100
Commands.txt: Update description of the "INVITE" command
---
doc/Commands.txt | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/doc/Commands.txt b/doc/Commands.txt
index 2d3cab2..2967b43 100644
--- a/doc/Commands.txt
+++ b/doc/Commands.txt
@@ -419,14 +419,17 @@ Channel Commands
~~~~~~~~~~~~~~~~
- INVITE
- INVITE <nick> <channel>
+ INVITE <nickname> <channel>
.
- Invites <nick> to <channel>.
- <channel> does not have to exist, but if it does, only members of the
- channel are allowed to invite other clients.
+ Invite <nickname> to join channel <channel>.
.
- If the <channel> mode "+i" is set, only <channel> operators may invite
- other clients.
+ <channel> does not have to exist, but if it does, only members of the
+ channel are allowed to invite other users. If the channel mode "+i"
+ is set, only channel "half-ops" (and above) may invite other clients,
+ and if channel mode "+V" is set, nobody can invite other users.
+
+ References:
+ - RFC 2812, 3.2.7 "Invite message"
- JOIN
JOIN <channels> [<channel-keys>]
Module: ngircd.git
Branch: master
Commit: 7f99f7c14f923c1e9aa8fe075a908c1e9e5b6239
URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=7f99f7c1…
Author: Alexander Barton <alex(a)barton.de>
Date: Sun Feb 24 16:20:27 2013 +0100
Add new _IRC_ARGC_EQ_OR_RETURN_ macro to irc-macros.h
---
src/ngircd/irc-macros.h | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/src/ngircd/irc-macros.h b/src/ngircd/irc-macros.h
index 87a6088..f0c0f36 100644
--- a/src/ngircd/irc-macros.h
+++ b/src/ngircd/irc-macros.h
@@ -18,6 +18,17 @@
*/
/**
+ * Make sure that number of passed parameters is equal to Count.
+ *
+ * If there are not exactly Count parameters, send an error to the client and
+ * return from the function.
+ */
+#define _IRC_ARGC_EQ_OR_RETURN_(Client, Req, Count) \
+if (Req->argc != Count) \
+ return IRC_WriteStrClient(Client, ERR_NEEDMOREPARAMS_MSG, \
+ Client_ID(Client), Req->command);
+
+/**
* Make sure that number of passed parameters is less or equal than Max.
*
* If there are more than Max parameters, send an error to the client and
Module: ngircd.git
Branch: master
Commit: 883a8fa6f185033102748be6dde1b386ddef54ac
URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=883a8fa6…
Author: Alexander Barton <alex(a)barton.de>
Date: Sun Feb 24 16:14:13 2013 +0100
Add new _IRC_ARGC_BETWEEN_OR_RETURN_ macro to irc-macros.h
---
src/ngircd/irc-macros.h | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/src/ngircd/irc-macros.h b/src/ngircd/irc-macros.h
index bd63ec4..87a6088 100644
--- a/src/ngircd/irc-macros.h
+++ b/src/ngircd/irc-macros.h
@@ -40,6 +40,17 @@ if (Req->argc < Min) \
Client_ID(Client), Req->command);
/**
+ * Make sure that number of passed parameters is in between Min and Max.
+ *
+ * If there aren't at least Min parameters or if there are more than Max
+ * parameters, send an error to the client and return from the function.
+ */
+#define _IRC_ARGC_BETWEEN_OR_RETURN_(Client, Req, Min, Max) \
+if (Req->argc < Min || Req->argc > Max) \
+ return IRC_WriteStrClient(Client, ERR_NEEDMOREPARAMS_MSG, \
+ Client_ID(Client), Req->command);
+
+/**
* Get sender of an IRC command.
*
* The sender is either stored in the prefix if the command has been