summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-05-04 21:17:10 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-05-04 21:17:10 +0000
commit113013274fb3b4ff32b442729e0ebb47aa747138 (patch)
tree56c5d466bd5c79f6f0e0eee39795761d7ef9e5a6 /include
parent59c851e2f4bb85fb1b00f59903950703ac3c48bd (diff)
- Implemented channel mode +c. Known from other ircds, this mode basically
prevents users from sending messages including control codes to a channel that has this mode set git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@1938 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'include')
-rw-r--r--include/channel.h2
-rw-r--r--include/channel_mode.h1
-rw-r--r--include/numeric.h1
3 files changed, 3 insertions, 1 deletions
diff --git a/include/channel.h b/include/channel.h
index 564533e..8780dbe 100644
--- a/include/channel.h
+++ b/include/channel.h
@@ -115,7 +115,7 @@ struct Ban
extern dlink_list global_channel_list;
extern int check_channel_name(const char *, const int);
-extern int can_send(struct Channel *, struct Client *, struct Membership *);
+extern int can_send(struct Channel *, struct Client *, struct Membership *, const char *);
extern int is_banned(const struct Channel *, const struct Client *);
extern int can_join(struct Client *, struct Channel *, const char *);
extern int has_member_flags(const struct Membership *, const unsigned int);
diff --git a/include/channel_mode.h b/include/channel_mode.h
index 2bd8ce6..ec705a5 100644
--- a/include/channel_mode.h
+++ b/include/channel_mode.h
@@ -59,6 +59,7 @@
#define MODE_OPERONLY 0x0080
#define MODE_REGISTERED 0x0100 /* Channel has been registered with ChanServ */
#define MODE_REGONLY 0x0200
+#define MODE_NOCTRL 0x0400
/* cache flags for silence on ban */
#define CHFL_BAN_CHECKED 0x0080
diff --git a/include/numeric.h b/include/numeric.h
index fb5da3a..923c91c 100644
--- a/include/numeric.h
+++ b/include/numeric.h
@@ -180,6 +180,7 @@ extern const char *form_str(unsigned int);
#define ERR_TOOMANYCHANNELS 405
#define ERR_WASNOSUCHNICK 406
#define ERR_TOOMANYTARGETS 407
+#define ERR_NOCTRLSONCHAN 408
#define ERR_NOORIGIN 409
#define ERR_INVALIDCAPCMD 410