This is a read-only archive. Find the latest Linux articles, documentation, and answers at the new Linux.com!

Linux.com

Feature: Internet & WWW

UberScript lets you do more with XChat

By Shashank Sharma on October 29, 2007 (8:00:00 AM)

Share    Print    Comments   

I've been using the XChat IRC client for many years. The only thing I find lacking in it is a list of favorite channels. The Uberscript plugin, written in Perl, adds a favorites list to XChat, and also allows you to do things like auto greet users when they join a channel and hide nick changes, quit, and join messages.

 To install UberScript, download the zip file from the software's home page and unzip it with unzip UberScript-1.1e.zip. This creates a directory named uber and two additional files -- Readme.txt and UberScript.pl. Move the directory and the two files to your ~/.xchat2/ directory.

Before you run XChat, edit the UberScript.pl script and look for the line my $uber_editor = "notepad";. Change notepad to your favorite graphical text editor; I use gedit. That's it! Now when you launch XChat, the script will load automatically.

New menus

The first thing you'll notice are three new menus: System, UberScript, and Favorites. The system menu lets you control various XChat settings, which, as the script's author Simon Avery points out, is handy since newer versions of XChat have dropped several menu options. You can for instance enable auto-login if you are kicked out of a channel by clicking System -> IRC -> irc_auto_login, or use the System -> Net -> net_auto_reconnectonfail to reconnect automatically in case of failed connections. The other categories under the System menu give you control over the system beeps, the network and IRC options, away messages, and so on.

Next up is the UberScript menu, which enables you to control almost every aspect of the plugin. The first category under this menu is Filtering. Options within Filtering let you hide the join, quit, and the nick change messages.

Uberscript gives you a welcome.txt file within the uber directory that you can use to set up custom greetings and run commands for users as they join a channel. For instance, *|#channelname|say Hello %n, welcome to %c! will greet everyone who joins the channel. You can also give operator status to users on your channel as soon as they join, or set up other kinds of automatic greetings with this file. You can edit the file by clicking UberScript -> Edit Files -> Edit Greetings.

By default, the Favorites menu is empty. You can add channels to the favorites list by editing the favourites.txt file -- click UberScript -> Edit Files -> Edit Favourites, and enter any channels you frequent on separate lines. You can similarly edit the gives.txt file and then run /ubergive nickname to randomly send short messages "giving" users something from the file. The gives.txt file contains a list of funny items such as a vampire. They really suck. So when I type from my IRC nickname linuxlala /ubergives roblimo, it'll print a message like linuxlala gives roblimo a vampire. They really suck, only it'll randomly pick an entry from the gives.txt file.

There's also a Quotes submenu under UberScript with several options within it, but it doesn't work out of the box, because no quote files, which simply contain random quotations, are included in the zip package. To get the quotes, download the quotes.zip file from the script's home page and unzip it into the ~/.xchat2/ directory. This will create a directory named quotes with several text files within it, each of which is associated with an option under the UberScript -> Quotes menu. Once they're in place, you can randomly throw quotes into a discussion by clicking on any of the options within the Quotes submenu. For example, if you click UberScript -> Quotes -> BOFH, UberScript will read the bofh.txt file and print a quote from it.

One striking thing about UberScript is the lack of a license agreement. Avery says this is in part because of the quotes that he picked up from the Internet, and so couldn't license, but mostly, he says, "I have a probably naive dislike of long wordy licenses when my needs aren't that complicated. The code is all my own, though. I don't want any money for it, and I don't mind if people use it for their own purposes."

The UberScript plugin initally was written for both Linux and Windows clients of XChat, but that's no longer the case. Avery says, "The official Windows XChat client went shareware, and since then has become progressively more complicated to compile. I think the decision to charge for a previously free, user-supported, and open source program is at the least morally wrong, and so I slowed up and eventually stopped my support for it." Avery, who works as a volunteer admin for a large gaming service provider and still writes scripts that make his task of controlling the gaming servers through IRC easier, says he'll contribute scripts to the community again when the "perfect" IRC client arrives.

The simplicity of setting up UberScript, the XChat features it makes available in an easy-to-navigate menu, and the host of features that it has to offer makes UberScript a must-have plugin for XChat users.

Every Monday we highlight a different extension, plugin, or add-on. Write an article of less than 1,000 words telling us about one that you use and how it makes your work easier, along with tips for getting the most out of it. If we publish it, we'll pay you $100. (Send us a query first to be sure we haven't already published a story on your chosen topic recently or have one in hand.)

Shashank Sharma specializes in writing about free and open source software for new users and moderates the Linux.com forum boards. He is the coauthor of Beginning Fedora, published by Apress.

Share    Print    Comments   

Comments

on UberScript lets you do more with XChat

Note: Comments are owned by the poster. We are not responsible for their content.

Different from PERL plug-in... how?

Posted by: Anonymous [ip: 169.233.25.226] on October 29, 2007 01:00 PM
Why should I use this when PERL exists and readily works with XChat.

Doesn't matter anyway, irssi > XChat.

#

UberScript lets you do more with XChat

Posted by: Michael Shigorin on October 29, 2007 01:23 PM
> auto greet users

Ugh, I'd look for a plugin to detect identical greets which seem to be autogenerated and just drop 'em.

"If you'll mail us with cron we'll read that with procmail" (c)

#

UberScript lets you do more with XChat

Posted by: Anonymous [ip: 24.117.5.196] on October 30, 2007 04:12 AM
"newer versions of XChat have dropped several menu options"

This drives me crazy. If you are going to make a graphical IRC client then make the damn thing graphical all the way. Don't hide options from users. Sure they can be easily set from simple commands but that completely misses the point of it being graphical.

With that said I have used UberScript for a long time now and really enjoy it. If it weren't for UberScript I would have ditched XChat long ago. I actually did stop using it for a while and used Konversation, which although not as extensible as XChat, holds a lot of potential. Simon Avery did a good job of making XChat useable.

#

good news

Posted by: Jen on October 31, 2007 01:53 AM
I found http://www.boxsweeper.com has a lot of movies anime music and games!This website is quite great! And it's free for you to streaming and download! Check it out and enjoy it! It will save you much time and money! Don't forgot to thanks me........ha ha

#

This story has been archived. Comments can no longer be posted.



 
Tableless layout Validate XHTML 1.0 Strict Validate CSS Powered by Xaraya