summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/inspircd.conf.example11
-rw-r--r--src/inspircd.cpp11
2 files changed, 13 insertions, 9 deletions
diff --git a/docs/inspircd.conf.example b/docs/inspircd.conf.example
index 3c99b8f6f..12e9fef23 100644
--- a/docs/inspircd.conf.example
+++ b/docs/inspircd.conf.example
@@ -259,8 +259,10 @@
# log file. You may select from debug, verbose, #
# default, sparse and none. #
# allowhalfop - allows the +h channel mode #
-# allowprotect - allows the +a channel mode #
-# allowfounder - allows the +q channel mode #
+# noservices - If noservices is true, yes, or 1, then the first #
+# user into a channel gets founder status. This is #
+# only useful on networks running the m_chanprotect #
+# module without services. #
# netbuffersize - size of the buffer used to receive data from #
# clients. The ircd may only read() this amount #
# of text in one go at any time. (OPTIONAL) #
@@ -274,9 +276,8 @@
loglevel="default"
netbuffersize="10240"
maxwho="128"
- allowhalfop="yes"
- allowprotect="yes"
- allowfounder="yes">
+ noservices="0">
+ allowhalfop="yes">
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index 310ef4043..eb4199f28 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -2604,7 +2604,8 @@ void process_command(userrec *user, char* cmd)
// another phidjit bug...
if (total_params > 126)
{
- kill_link(user,"Protocol violation (1)");
+ //kill_link(user,"Protocol violation (1)");
+ WriteServ(user->fd,"421 %s * :Unknown command",user->nick);
return;
}
@@ -2687,7 +2688,8 @@ void process_command(userrec *user, char* cmd)
if (strlen(command)>MAXCOMMAND)
{
- kill_link(user,"Protocol violation (2)");
+ //kill_link(user,"Protocol violation (2)");
+ WriteServ(user->fd,"421 %s * :Unknown command",user->nick);
return;
}
@@ -2697,9 +2699,10 @@ void process_command(userrec *user, char* cmd)
{
if (((command[x] < '0') || (command[x]> '9')) && (command[x] != '-'))
{
- if (!strchr("@!\"$%^&*(){}[]_-=+;:'#~,.<>/?\\|`",command[x]))
+ if (strchr("@!\"$%^&*(){}[]_=+;:'#~,<>/?\\|`",command[x]))
{
- kill_link(user,"Protocol violation (3)");
+ //kill_link(user,"Protocol violation (3)");
+ WriteServ(user->fd,"421 %s * :Unknown command",user->nick);
return;
}
}