Making X-Chat To Be Like mIRC

You cannot type /j #channel in X-Chat just like in mIRC. So, this is how..

# Script name: lazyjoin.pl
# usage: this script like join in mIRC. You don't typo /j #channel,
# but u can do like this typo /j channel (like in mIRC)
# Put this code in your .xchat2 direktori.use strict;
use warnings;
Xchat::register('Lazy join', 1, 'makes "/join channel" work');
Xchat::hook_command('join', sub {
my @t = map { /^#/ ? $_ : "#$_" } split /,/, $_[0][1];
Xchat::command('join ' . join(',', @t) . ' ' . ($_[1][2] || ''));
return Xchat::EAT_ALL;
});
1;

Leave a Reply