Did you know? [random xchat facts]
If you want to auto-remove files from the DCC windows when they are finished or aborted, you can /set dcc_remove 1. Great for file servers.
xchat.org
XChat IRC Client
 
 FAQFAQ   SearchSearch   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[xchat-enhance] charset(/chan),protect,highlight,whois...
Goto page 1, 2  Next
 
Post new topic   Reply to topic    xchat.org Forum Index -> Scripts and Plugins
View previous topic :: View next topic  
Author Message
Kyoshiro



Joined: 07 Jul 2004
Posts: 35

PostPosted: Thu Aug 05, 2004 1:40 am    Post subject: [xchat-enhance] char Reply with quote

You can download it here :
http://www.kyoshiro.org/pub/xchat/xchat-enhance-0.4-dev.tar.bz2

This script is completely modular, and each part can be disabled (so the code is disabled, functions and events hooks deactivated). Thus you can totally deactivate everything you don't need.

General info
* Configurable colors
* Configurable behavior (show last line or not, space indent length)
* Configuration file which saves all non-default options. Default file is "enhanced.conf" in xchat path (should work on windows too but not tested).
* Line size limit (only used in names atm), which avoids having ugly double-lines.
* Pretty options handling (quite like Xchat's /set)
* Loadable plugins
Charset module
* Allows you to set a charset - different from your global Xchat charset - for a channel or a nickname, in order to encode outgoing messages and decode incoming ones.
WHOIS module
* Always print replies in the window/tab where you were at request time (and not where you are when the server dares reply).
* Show WHOIS reply in current window/tab even with special window/tab for server messages
* Show "no such user/channel/server" messages in current window
* More condensed and logical organization for whois replies (configurable)
* Channels you are on are printed in bold
* provides WHOISFULL command to have all information whatever your whois-restricting options are.
* In ircmask, @ and ) are in bold to allow selecting/copying hostname with double click
* Same trick in server hostname.
Protect-ban module
* Removes bans matching you, and eventually punish who did it.
* Tries multiple punish bans by checking they don't match you
* Prevents you from banning yourself
* Can kick with a special reason.
NAMES module
* Always print replies in the window/tab where you were at request time (and not where you are when the server dares reply).
* Prints a NAMES reply in irssi-style format : indented nicks to make it human-readable (columns), colors, count summary.
* Configurable nick truncation (or not) : when names_trunc_lines_limit is non-zero, nicks whose length is more than average nick length*1.5 are truncated to average nick length*1.5. A '*' char is appended to nickname. Average nickname length is computed using all channel nicknames.
* Alphabetical sorting. Option to sort by user mode before.
Highlight module
See http://forum.xchat.org/viewtopic.php?p=12696#12696 atm..
UTF8decoder module
* simply enable this module to decode UTF8 whatever your character set may be.

This script has been tested on FreeNode and bahamut servers. If you're on a network where my script doesn't work as expected, please let me know and I'll fix it as soon as possible.

Not tested on Windows, but should work...

You can join me on IRC Kyoshiro @ OFTC (stay at least a day if you expect an answer Wink )


Last edited by Kyoshiro on Mon Aug 18, 2008 10:02 pm; edited 8 times in total
Back to top
View user's profile Send private message
Agnus



Joined: 20 Jan 2005
Posts: 7

PostPosted: Tue Jan 25, 2005 12:23 pm    Post subject: enhance bug? Reply with quote

Hi:
I'm trying to install teh enhance script v0.3 but when i'm starting the xchat v 2.0.8 I was read this mesage:
Errors loading file /home/nyago/.xchat2/enhance.pl:
Can't locate Switch.pm in @INC (@INC contains: /usr/local/lib/perl/5.6.1 /usr/local/share/perl/5.6.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.6.1 /usr/share/perl/5.6.1 /usr/local/lib/site_perl .) at (eval 7) line 25.
BEGIN failed--compilation aborted at (eval 7) line 25.

Can you help me?

I'm runing a debian woddy.

Sorry for my english, isn't very good, i thik so is bad.

Thanks

Agnus
Back to top
View user's profile Send private message
Kyoshiro



Joined: 07 Jul 2004
Posts: 35

PostPosted: Tue Jan 25, 2005 1:07 pm    Post subject: Reply with quote

You should install perl-modules package (if it's the same in woody as in sid Wink).
Back to top
View user's profile Send private message
Agnus



Joined: 20 Jan 2005
Posts: 7

PostPosted: Tue Jan 25, 2005 1:25 pm    Post subject: Reply with quote

I have install the perl modules pakage and I have runing some perl?s and it?s so good.

Agnus
Back to top
View user's profile Send private message
Kyoshiro



Joined: 07 Jul 2004
Posts: 35

PostPosted: Fri Feb 09, 2007 1:08 pm    Post subject: Reply with quote

A little update, new version (0.3 => 0.4)
Back to top
View user's profile Send private message
Alchera



Joined: 28 May 2005
Posts: 932
Location: Ballarat Victoria, Australia

PostPosted: Fri Feb 09, 2007 2:50 pm    Post subject: Reply with quote

Quote:
Le fichier requis n'a pas été trouvé.

Crying or Very sad
_________________
"Live Outside The Square You Live In"
"Vivez hors du quartier où vous habitez"
Back to top
View user's profile Send private message
Kyoshiro



Joined: 07 Jul 2004
Posts: 35

PostPosted: Fri Feb 09, 2007 5:07 pm    Post subject: Reply with quote

fixed ! sorry Wink
I've put my IRC contact in the first post.
Back to top
View user's profile Send private message
ascii



Joined: 16 Jun 2006
Posts: 7

PostPosted: Sat Feb 10, 2007 12:45 pm    Post subject: Reply with quote

i would love if you would expand the whois plugin.

I'm an IRC op and have used the "DMS-Whois 1.2.5".
I loved it with the real IP and a lot of user stuff.

Is it possible to implement it to your script?
Back to top
View user's profile Send private message
Kyoshiro



Joined: 07 Jul 2004
Posts: 35

PostPosted: Sat Feb 10, 2007 12:58 pm    Post subject: Reply with quote

Yeah no problem !
Could you send me a raw log of messages you want implemented ?
Back to top
View user's profile Send private message
Kyoshiro



Joined: 07 Jul 2004
Posts: 35

PostPosted: Sat Feb 10, 2007 2:42 pm    Post subject: Reply with quote

Alright it's done Wink

Btw, I completely missed I had a *very* newer version of my script in CVS, and I've just put it on my server (see first message for URL).

There's a bunch of fixes, and a new plugin (hl) for highlight purpose.
A little overview :
Code:
 -Enhance- /enhance hl: Manage highlight rules
 -Enhance- List of subcommands :
 -Enhance- hl add: add a highlight rule
 -Enhance- hl colornick: colorize specified nicknames easily
 -Enhance- hl colornickmsg: colorize specified nicknames (plus the message) easily
 -Enhance- hl del: delete specified rule
 -Enhance- hl invertchans: (per-rule) change channel list to channel exception list
 -Enhance- hl list: list highlight rules
 -Enhance- hl setchans: (per-rule) restrict a rule to a channel list
 -Enhance- hl setcolor: (per-rule) change the highlight colors for a rule
 -Enhance- hl setmatch: (per-rule) change the text used to match messages or nicknames
 -Enhance- hl setnet: (per-rule) restrict a rule to a network
 -Enhance- hl setregex: (per-rule) set a highlight rule to match with regex or text
 -Enhance- hl settype: (per-rule) set a highlight rule to match on messages, nicknames or both


Code:
 -Enhance- /enhance hl add: add a highlight rule
 -Enhance- Usage :
 -Enhance- /enhance hl add [-r] [-i] [-cn #] [-cm #] [-t type] [-c chanlist] [-n "network name"] -- match text
 -Enhance-   Each option between [] is *optional*. The match *MUST* be
 -Enhance-   preceded by -- and is absolutely needed.
 -Enhance-   -r option allows you to enable regex behavior ;
 -Enhance-   -i option allows you to enable invertchans behavior ;
 -Enhance-   -cn color is used to set nickname color when triggered ;
 -Enhance-   -cm color is used to set message color when triggered ;
 -Enhance-   -t type allows you to tell if rule is to match on nickname
 -Enhance-      message or both. The corresponding values of type are
 -Enhance-      nick, msg, all or raw. See settype subcommand for details ;
 -Enhance-   -c chanlist allows you to set the channel list on which
 -Enhance-      the rule should/should not (see invertchans) trigger ;
 -Enhance-   -n "network name" allows you to restrict rule to specified
 -Enhance-      network only. It *MUST* be quoted if containing more
 -Enhance-      than one word. The network name is the one in Xchat's
 -Enhance-      network list if you use it, else the self-claimed
 -Enhance-      network name. It's recommended to use the network list
 -Enhance-      since servers can be misconfigured...
 -Enhance-   -- match text IS NEEDED !
 -Enhance-      It's the text which will trigger the highlight ;)
 -Enhance-      If you use regular expressions, don't forget to escape
 -Enhance-      what you need and follow the perl regex guide :
 -Enhance-      http://perldoc.com/perl5.8.4/pod/perlre.html


Last edited by Kyoshiro on Mon Nov 12, 2007 10:14 pm; edited 1 time in total
Back to top
View user's profile Send private message
poka64



Joined: 24 Jun 2005
Posts: 23

PostPosted: Sat Feb 24, 2007 7:30 pm    Post subject: Reply with quote

I'm getting a error, what to do now?
The script worked for a while then this happens Sad

Code:
Error in print callback Cannot decode string with wide characters at /usr/lib/perl/5.8/Encode.pm line 166.


Is there a way to disable this?
Code:
-Enhance- Unable to convert message properly. Sending original message."
Back to top
View user's profile Send private message
Kyoshiro



Joined: 07 Jul 2004
Posts: 35

PostPosted: Wed Jun 13, 2007 8:27 pm    Post subject: Reply with quote

I answered you in private a few times ago, I hope it solved the issue Wink

People who are using this script can download the newest version (see first message for URL)

I hope the charset plugin works correctly, I'm using it with ISO8859-15 and UTF8 channels.


Last edited by Kyoshiro on Mon Nov 12, 2007 10:15 pm; edited 2 times in total
Back to top
View user's profile Send private message
Kyoshiro



Joined: 07 Jul 2004
Posts: 35

PostPosted: Sat Nov 03, 2007 7:49 pm    Post subject: Reply with quote

Hi,

There are some new fixes in xchat-enhance, especially on the charset module.
There is a new module called "utf8decoder" to translate utf8 messages into your current network charset. It's processed last to avoid issues with the charset plugin.

The script has been packaged on 2007-11-03 (see first message for URL)


Upgrades should go smoothly (simply replace enhance.pl and enhance.help files), but old versions's users (if there are some...) will need to explicitly enable the new module utf8decoder if they want it with :
/e plugin load utf8decoder

The charset module probably needs some testing, since I'm using it only with network charset = ISO8859-15 with some UTF8 channels.
It should work the other way, though if you have issues, feel free to as Kyoshiro @ OFTC .
If you expect an answer please stay at least a day... Thanks Wink


Last edited by Kyoshiro on Wed Apr 30, 2008 10:32 pm; edited 3 times in total
Back to top
View user's profile Send private message
Kyoshiro



Joined: 07 Jul 2004
Posts: 35

PostPosted: Mon Nov 12, 2007 10:12 pm    Post subject: Reply with quote

Small update, charset should work whatever your configuration is now.
The issue reported by Agnus earlier exist no more.

I switched from "Encode" to "Text::Iconv" perl module....
Works loads better !

(see first message for URL)
Back to top
View user's profile Send private message
pordo



Joined: 17 Aug 2008
Posts: 3

PostPosted: Sun Aug 17, 2008 11:08 am    Post subject: Reply with quote

your server needs authorisation...
how can i download the script?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    xchat.org Forum Index -> Scripts and Plugins All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group