From 8ebf5b9a189dfae3674bcfaceee9a8d56ea20741 Mon Sep 17 00:00:00 2001
From: Bram Matthys
Date: Sat, 21 Feb 2004 15:50:15 +0000
Subject: [PATCH] - Updated docs on tempshun and new spamfilter features.
---
Changes | 1 +
doc/unreal32docs.html | 35 +++++++++++++++++++++++++----------
help.conf | 17 +++++++++++++++--
3 files changed, 41 insertions(+), 12 deletions(-)
diff --git a/Changes b/Changes
index 89ada00db..cebb7d8f5 100644
--- a/Changes
+++ b/Changes
@@ -2937,3 +2937,4 @@ seen. gmtime warning still there
- Added /tempshun, temporary shuns the current session of specified nick
(just like the 'tempshun' in spamfilter and ban version). Suggested by
Cnils (#0001526). [docs/help.conf will be updated later]
+- Updated docs on tempshun and new spamfilter features.
diff --git a/doc/unreal32docs.html b/doc/unreal32docs.html
index 7029a26c8..95b26541a 100644
--- a/doc/unreal32docs.html
+++ b/doc/unreal32docs.html
@@ -443,16 +443,28 @@ Modules can also add other extended ban types.
the badwords system but has several advantages.
Spamfilters are added via the /spamfilter command which uses the following syntax:
/spamfilter [add|del|remove|+|-] [type] [action] [tkltime] [reason] [regex]
- [type] specifies the target type, you can specify multiple targets:
- 'c' channel msg, 'p' private msg, 'n' private notice, 'N' channel notice, 'P' part msg, 'q' quit msg, 'd' dcc
- [action] specifies the action to be taken (only 1 action can be specified):
- 'kill', 'tempshun' (only shun current session), 'shun',
- 'kline', 'gline', 'zline', 'gzline', 'block' (blocks only)
- [tkltime] The duration of the *line added by the filter, use '-' to use the default or to skip
- (eg: if action = 'block')
- [reason] Block or *line reason.. you CANNOT use spaces in this, but underscores ('_') will be translated
-into spaces at runtime. Again, use '-' to use the default.
- [regex] this is the actual regex or 'bad word' where we should block on and perform the action at
+
+ | [type] | specifies the target type, you can specify multiple targets:
+ 'c' channel msg, 'p' private msg, 'n' private notice, 'N' channel notice, 'P' part msg, 'q' quit msg, 'd' dcc |
+ | [action] | specifies the action to be taken (only 1 action can be specified)
+
+| kill | kills the user |
+| tempshun | shuns the current session of the user (if [s]he reconnects the shun is gone) |
+| shun | puts a shun on the host |
+| kline | puts a kline on the host |
+| gline | puts a gline on the host |
+| zline | puts a zline on the host |
+| gzline | puts a gzline (global zline) on the host |
+| block | block the message only |
+| dccblock | mark the user so (s)he's unable to send any DCCs |
+| viruschan | part all channels and join set::spamfilter::virus-help-channel |
+ |
+ | [tkltime] | The duration of the *line added by the filter, use '-' to use the default or to skip
+ (eg: if action = 'block') |
+ | [reason] | Block or *line reason.. you CANNOT use spaces in this, but underscores ('_') will be translated
+into spaces at runtime. Again, use '-' to use the default. |
+ | [regex] | this is the actual regex or 'bad word' where we should block on and perform the action at |
+
Here's an example: /spamfilter add pc gline - - Come watch me on my webcam
If the text come watch me on my webcam is found in either a private msg or a channel msg
@@ -473,6 +485,7 @@ into spaces at runtime. Again, use '-' to use the default.
set::spamfilter::ban-time allows you to modify the default ban time for *lines added by spamfilter (default: 1 day)
set::spamfilter::ban-reason allows you to specify a default reason for the *lines (default: 'Spam/advertising')
+ set::spamfilter::virus-help-channel allows you to specify the channel to join for action 'viruschan' (default: #help)
3.15 - Other features
@@ -2130,6 +2143,8 @@ set {
Same as above but for *lines added by spamfilter
set::spamfilter::ban-reason <reason>
Reason to be used for *lines added by spamfilter
+
set::spamfilter::virus-help-channel <channel>
+ The channel to use for the 'viruschan' action in spamfilter
5 – Additional Files
diff --git a/help.conf b/help.conf
index fe4e8c057..bcdd4d1b9 100644
--- a/help.conf
+++ b/help.conf
@@ -50,7 +50,7 @@ help Opercmds {
" ==----------------oOo---------------==";
" OPER WALLOPS GLOBOPS CHATOPS LOCOPS DNS";
" ADCHAT NACHAT KILL KLINE ZLINE SPAMFILTER";
- " GLINE SHUN GZLINE HTM TSCTL";
+ " GLINE SHUN GZLINE HTM TSCTL TEMPSHUN";
" AKILL RAKILL REHASH RESTART DIE";
" LAG SETHOST SETIDENT CHGHOST CHGIDENT";
" CHGNAME SQUIT CONNECT DCCDENY UNDCCDENY";
@@ -1177,7 +1177,9 @@ help Spamfilter {
" 'N' channel notice, 'P' part msg, 'q' quit msg, 'd' dcc";
" [action] specifies the action to be taken (only 1 action can be specified):";
" 'kill', 'tempshun' (only shun current session), 'shun',";
- " 'kline', 'gline', 'zline', 'gzline', 'block' (blocks the msg)";
+ " 'kline', 'gline', 'zline', 'gzline', 'block' (blocks the msg),";
+ " 'dccblock' (unable to send any dccs), 'viruschan' (part all channels";
+ " and join the virus help chan).";
" [regex] this is the actual regex where we should block on";
" [tkltime] the duration of the *LINEs placed by action (use '-' to use the default";
" set::spamfilter::ban-time, this value is ignored for block/tempshun');";
@@ -1195,3 +1197,14 @@ help Spamfilter {
" /spamfilter del p block - - Come watch me on my webcam*";
" /spamfilter add cN gzline 1d No_advertising_please come to irc\..+\..+";
};
+
+help Tempshun {
+ " Add/remove 'temporary shuns'.";
+ " Temporary shuns are shuns added on a specified target for ";
+ " _the current session only_, this means if the user reconnects";
+ " the shun will be gone.";
+ " -";
+ " Syntax: TEMPSHUN [+|-] [reason]";
+ " Example: TEMPSHUN evilguy suspected infection";
+ " TEMPSHUN -niceguy";
+};