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

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: