Spamfilter db location

These are old archives. They are kept for historic purposes only.
Post Reply
mad_dog
Posts: 6
Joined: Mon Aug 30, 2004 4:13 pm
Location: usa

Spamfilter db location

Post by mad_dog »

I may be overlooking this, but I cant seem to find the Spamfilter database with the filters/regexp's we created anywhere in the Unreal main dir. I would like to back these up so we dont have to re-create in the future.
Anyone point me to the correct file? Thanks in advance
Grunt
Posts: 159
Joined: Mon Jan 09, 2006 7:31 pm
Contact:

Post by Grunt »

Spamfilters added by yourself from IRC aren't saved in any file, but stored in memory and are lost when you shut down the server. Your best deal would be to save them all in spamfilter.conf (also make sure you have an include line in unrealircd.conf like this one: include "spamfilter.conf";)
Computers are machines that cause trouble you wouldn't normally have if you wouldn't have a computer.
mad_dog
Posts: 6
Joined: Mon Aug 30, 2004 4:13 pm
Location: usa

Post by mad_dog »

Thanks, was hoping would be easier *Laughs*. Think I will make a txt file instead and load it manually if the need arises, will just have to keep up on the listing as it changes
JanisB
Posts: 128
Joined: Fri Apr 22, 2005 9:05 am
Location: LV
Contact:

Post by JanisB »

********bonus********

I am too lazy to add all this by hand, but after this code writing i can use "/backup" cmd to fetch all K:Lines/spamfilter's in da backup files and after server restart restore all this using mIRC-friendly formatted files (except 1st line).

NB!, if at backupping moment user has 1-day-left K:Line, and after backup you want to restore it after 2 weeks, user will be banned again for 1 day ;)

Aliases:

/backup {
set %timenow $asctime(yyyy-mm-dd_HH-nn-ss)
set %backup_data 1
set %klinebackup 1
echo -a starting K:Line backupping
/write " $+ $mircdir $+ logging\KLine_backup_ $+ %timenow $+ .log " K:Line recovery commands. ( $+ %timenow $+ )
/stats K
}
/spam_backup {
set %spamfilterbackup 1
set %backup_data 0
echo -a starting Spamfilter match backupping
/write " $+ $mircdir $+ logging\Spamfilter_backup $+ %timenow $+ .log " Spamfilter recovery commands. ( $+ %timenow $+ )
/stats f
}


Remote:

raw 223:*:{
if ( %klinebackup == 1 ) {
/write " $+ $mircdir $+ logging\KLine_backup_ $+ %timenow $+ .log " /kline $3 $4 $7-
halt
}
}
raw 229:*:{
if ( %spamfilterbackup == 1 ) {
/write " $+ $mircdir $+ logging\Spamfilter_backup $+ %timenow $+ .log " /SPAMFILTER add $3 $4 $7 $8 $10-
halt
}
}
raw 219:*:{
if ( %backup_data == 1 ) {
echo -a STATS backup finished.
/spam_backup
halt
} else {
set %klinebackup 0
set %spamfilterbackup 0
}
}
Post Reply