User panel stuff on forum
  16 posts on 1 page  1
Advanced Configuration
2009-03-04, 19:23
Member
54 posts

Registered:
Jul 2006
This is a script that filters out servme from channels and places them in a separate window in mIRC
very usefull if you like to avoid all the spam in all the channels you are in.
Also easy to check a log for servme bots. and there is different color for spam and qw
with the question about your default channel include the # sign aswell
http://www.indicated.de/downloads/download_proc.php?id=13
download and put in your mirc dir. open remote script (alt + r) press file and then load
find the file and load it

http://pici.se/pictures/mDdleYQXD.png



or put this in a new remote file in your mirc script editor (alt + r)
this doesnt work as well cause you need to save the script and then reload it so it is better to use the link....

on 1:LOAD:{
.echo mIRC serveme filter loaded
.window -a @serveme
.auser 11 *!*serveme??@*
.set %smc $?="Put you default serveme channel with the channel prefix (shift 3) here"
.set %qwcolor $?="Chose color for qw output 1-15 (mirc colors)"
.set %spamcolor $?="Chose color for spam output 1-15 (mirc colors)"
}
on 1:CONNECT:/window -a @serveme

on ^11:TEXT:*-qw-*:#:{
if $chan == %smc {
haltdef
aline -phc $+ %qwcolor @serveme $time $1-
}
else {
haltdef
}
}
on ^11:text:*-spam-*:#:{
if $chan == %smc {
haltdef
aline -phc $+ %spamcolor @serveme $time $1-
}
else {
haltdef
}
}
on ^11:text:mnet*:#:{
if $chan == %smc {
haltdef
aline -ph @serveme $time $1-
}
else {
haltdef
}
}
on 1:text:.qw*:#:{
if $nick isop $chan && $chan == %smc {
aline -phc $+ %qwcolor @serveme $time -qw- $nick - $chan $2-
}
else {
halt
}
}
on 1:text:.spam*:#:{
if $nick isop $chan && $chan == %smc {
aline -phc $+ %spamcolor @serveme $time -spam- $nick - $chan $2-
}
else {
halt
}
}

Rocketz made a nice "how to":
1) Unpack the archive into your mIRC directory
2) Write /load -rs servemefilter.mrc
3) If you get a error message from that, you should move the .mrc file to the directory it shows you in the error message and do 2) again
4) When the script loads you should chose “Yes”
5) The script now ask you what channel to monitor for .qw and .spam messages
6) Next thing is to choose what color .qw and .spam messages should be printed in

updated .. removed the double postings and I have moved the "mnet: Message sent to X users in Y channels." to serveme window
2009-03-04, 21:23
Member
518 posts

Registered:
Jan 2006
doesn't work for me :< the old irc script doesn't work either in the new mirc :<

i changed #a2k.qw to #slackers for both -qw- and -spam but it doesn't filter
2009-03-04, 21:28
Member
54 posts

Registered:
Jul 2006
han you added serveme as a user?
it should say in the "user" tab next to remote
check that it says
11:*!*serveme??@*
2009-03-04, 21:30
Member
518 posts

Registered:
Jan 2006
yeas the user is added
2009-03-05, 11:37
Member
113 posts

Registered:
Apr 2006
I'm using the script I posted in the old serveme thread here. It has a few non-critical bugs but it seems to do the job most of the time.

And use the [ code ] tag if you are pasting code =)
biomass
2009-03-05, 15:47
Administrator
2059 posts

Registered:
Jan 2006
Moved to forum "Advanced configuration".
www.facebook.com/QuakeWorld
2009-03-05, 17:13
Member
42 posts

Registered:
Apr 2007
Working over here. But it didn't work if i pasted the code into remote.ini (via alt+r). But when I made a qw.mrc file with the code and loaded it with /load -rs qw.mrc it worked like a charm. So sweet, thanks adde!
http://www.rocketz.se - a quakeworld blog in the 21st century
2009-03-05, 17:32
Member
54 posts

Registered:
Jul 2006
www.indicated.de/a2k/qwfilter.rar
2009-03-05, 19:01
Member
42 posts

Registered:
Apr 2007
www.rocketz.se is updated with this script, and a how-to-get-it-working guide
http://www.rocketz.se - a quakeworld blog in the 21st century
2009-03-05, 21:46
Member
3 posts

Registered:
Feb 2009
RocketZ wrote:
Working over here. But it didn't work if i pasted the code into remote.ini (via alt+r). But when I made a qw.mrc file with the code and loaded it with /load -rs qw.mrc it worked like a charm. So sweet, thanks adde!

Working definately better with this way also. But not only getting serveme messages in new @serveme window also getting all regular ones in channels not filtered.
Tried also biomass' script, it filters right but messing up my nnscript theme

So if Adde finds a solution for not filtering messages, that would be just sweet
And nice work this far, thanks.
2009-03-05, 22:12
Member
42 posts

Registered:
Apr 2007
some wrote:
RocketZ wrote:
Working over here. But it didn't work if i pasted the code into remote.ini (via alt+r). But when I made a qw.mrc file with the code and loaded it with /load -rs qw.mrc it worked like a charm. So sweet, thanks adde!

Working definately better with this way also. But not only getting serveme messages in new @serveme window also getting all regular ones in channels not filtered.
Tried also biomass' script, it filters right but messing up my nnscript theme

So if Adde finds a solution for not filtering messages, that would be just sweet
And nice work this far, thanks.

That's the nice thing about this script, it filters the .qw and .spams from the channels. Easier to see if someone writes something _for real_ in channels now.
http://www.rocketz.se - a quakeworld blog in the 21st century
2009-03-05, 22:38
Member
3 posts

Registered:
Feb 2009
That's the feature I'm still missing from this script. I can see serveme messages in it's own window but not filtered out. It's working on biomass' script but that other hand mess up my theme. So either way there's something I have to give up still.
2009-03-06, 00:00
Member
54 posts

Registered:
Jul 2006
found the error
in events.nns line 461
add the following line
elseif serveme isin $nick { halt }

the code should look like this
on ^*:text:*:#:{
var %o = $strip($1-)
cprot.chktxtevent $1-
if ($contentfilter(%o).chan) { haltdef }
elseif serveme isin $nick { halt }
elseif (!$halted) && ($nick != $me) {
var %z = $isachl(%o),%a = $cid
if (%z) {
if (%pprot.highlightflood) { checkpp highlightflood }
if (!$halted) {
if (%showhla) && ($chan != $active) && ((@MinIRC != $active) || ($chan != $wd(%minirc,1)) || ($cid != $wd(%minirc,2))) {
scid $activecid
thmecho -a $thmhl($nick) highlighted you in $iif($activecid != %a,$thmhl($chan) on $thmhl($iif($scid(%a).network,$v1,$scid(%a).server)),$thmhl($chan)) $+ : $1-
scid -r
}
aw.chkhl
}
}
}
}
2010-07-02, 13:11
Member
2 posts

Registered:
Feb 2008
is there any scripts for this cause, made for irssi? thanks for any help
2010-07-02, 15:18
Member
115 posts

Registered:
Mar 2006
http://jogi.netdome.biz/serveme.pl
thats one for irssi
one of the good guys! so please don't ban - jogi.netdome.biz
2011-01-02, 20:58
Member
171 posts

Registered:
Jan 2006
Here is one for xchat (it requires perl)

Installation:
1. Xchat -> Load plugin or script...
2. /serveme_channel #channel_where_both_you_and_serveme_are_present

The default channel is #quakeworld

#!/usr/bin/perl
use strict;
use warnings;

# --------------------------------------------------------------------------------
# Documentation
# --------------------------------------------------------------------------------
#
# Intercepts messages from ServeMe-bots and displays them in separate query
# windows, <qw> and <spam>.
#
# Commands:
#
# serveme_channel - Sets channel from where to read ServeMe-messages. The default
# channel is #quakeworld you must be on the channel for the
# script to work. Ex. /serveme_channel #quakeworld
#
# serveme_channel_current - Prints current channel in the active window
#
# Contact:
#
# QuakeNet, #clan-sm, apa
#
# --------------------------------------------------------------------------------

# Configuration
my $serveme_channel = "#quakeworld";

# Script info
my $name = "ServeMe";
my $version = "0.1";
Xchat::register($name, $version, "ServeMe messages are intercepted and put in separate query windows.";

Xchat::print("Loaded $name $version";
serveme_channel_current();
open_query_windows();

# Hooks
Xchat::hook_print("Channel Message", \&channel_message_callback);
Xchat::hook_print("Channel Msg Hilight", \&channel_message_callback);
Xchat::hook_print("Connected", \&connected_callback);
Xchat::hook_command("serveme_channel", \&set_serveme_channel, {help_text => "Sets channel where ServeMe messages are intercepted."});
Xchat::hook_command("serveme_channel_current", \&serveme_channel_current, {help_text => "Prints the current ServeMe channel."});

# Methods
sub channel_message_callback
{
my $nick = Xchat::strip_code($_[0][0]);

# Check if the message is from a ServeMe user
if ($nick =~ m/^\[ServeMe\]\d\d$/i)
{
my $msg = Xchat::strip_code($_[0][1]);
# Info message "mnet: Message sent to 1338 users in 155 channels."
if ($msg =~ m/^mnet/i)
{
return Xchat::EAT_NONE;
}
# Check if the ServeMe message is from the input channel
if (Xchat::get_context() == Xchat::find_context($serveme_channel))
{
open_query_windows();
my $context = Xchat::get_context();
if ($msg =~ m/^-qw-/i)
{
Xchat::set_context(Xchat::find_context("<qw>");
}
elsif ($msg =~ m/^-spam-/i)
{
Xchat::set_context(Xchat::find_context("<spam>");
}
else
{
# this should never happen
if (!Xchat::find_context("<unknown>")
{
Xchat::command("query <unknown>";
}
Xchat::set_context(Xchat::find_context("<unknown>");
}
Xchat::emit_print("Channel Message", $nick, $msg, $_[0][2], $_[0][3]);
Xchat::set_context($context);
}
return Xchat::EAT_ALL;
}
else
{
return Xchat::EAT_NONE;
}
}

sub connected_callback
{
open_query_windows();
}

sub set_serveme_channel
{
if ($_[0][1] =~ m/^#[a-z0-9_]+/i)
{
$serveme_channel = $_[0][1];
serveme_channel_current();
}
else
{
Xchat::print("Invalid channel name $_[0][1].";
}
}

sub serveme_channel_current
{
Xchat::print("ServeMe channel: $serveme_channel";
}

sub open_query_windows
{
if (!Xchat::find_context("<qw>")
{
Xchat::command("query <qw>";
}
if (!Xchat::find_context("<spam>")
{
Xchat::command("query <spam>";
}
}
  16 posts on 1 page  1