Nick Prefix Script

Discussion about Perl, TCL or Python scripts and C/C++ plugins (using and writing them).

Nick Prefix Script

Postby rash » 25 Oct 2009 15:26

Does anyone have a script that adds the nick prefixes like @ and + in front of users names in the chat window/list?
rash
 
Posts: 1
Joined: 25 Oct 2009 15:24

Postby Khisanth » 25 Oct 2009 20:55

For the text box you can edit the Text Events to add the mode. See http://t0x.in/xchattextevents.html for details.

Windows:
For the user list you will need either the latest version built from SVN code or the latest official build. Then you must use
/set -on gui_tweaks 64


*nix:
For the user list you will need either the latest version built from SVN code or this script
http://lwsitu.com/xchat/color_by_mode.pl

For the SVN build you must run
/set -on gui_tweaks 64
as well.

For the script there is no configuration required but you might want to change
$m->set( $i, 4, Gtk2::Gdk::Color->new( @$color ) );
to
#$m->set( $i, 4, Gtk2::Gdk::Color->new( @$color ) );
if you don't want the nicks in the userlist to be colored. Of course you can change the colors for the modes as well.

The script should work with the SilvereX build as well on Windows. I had it loaded and it was doing what it was supposed to but it gets its data in a very unsafe matter(on Windows) so it might not be very stable. However as long as it doesn't crash upload loadng it should be fine.
Khisanth
 
Posts: 1559
Joined: 10 Jun 2004 05:23

Postby netstat » 04 Jan 2010 16:14

Please enable

Code: Select all
/set -on gui_tweaks 64


for *nix too :-)
User avatar
netstat
 
Posts: 82
Joined: 28 Jul 2004 16:58
Location: Germany / Karlsruhe

Postby Khisanth » 04 Jan 2010 17:59

That is already done. You just have to build xchat yourself.
Khisanth
 
Posts: 1559
Joined: 10 Jun 2004 05:23

Postby netstat » 04 Jan 2010 23:35

I build it, and it works fine. :-)

But what is here (de.po) wrong?
#: src/fe-gtk/servlistgui.c:1432
msgid "C_onnect"
msgstr "_Verbinde"


In the button from serverlist i have

"_Verbinde" and not "Verbinde"
User avatar
netstat
 
Posts: 82
Joined: 28 Jul 2004 16:58
Location: Germany / Karlsruhe


Return to Scripts and Plugins

Who is online

Users browsing this forum: No registered users and 1 guest