Showing posts with label irc. Show all posts
Showing posts with label irc. Show all posts

A Collection of Tips and Tricks for XChat, Part 1

    XChat is a GTK client for IRC, available on both Linux and Windows. It is one of the most popular and feature-rich IRC clients on the Linux platform, together with Konversation and KVirc. Of course, there are very good clients like Irssi too, but I'm talking only about graphical clients here.

    Although by default XChat doesn't offer all the user-friendly options in its configuration dialogue, its true power stands in the possibility to configure it using /SET variables and Perl/Python scripts or even C plugins. You can practically make XChat behave in any way you want: from a powerful, personalised IRC client for daily use to an IRC help or trivia bot.

    In my two recent articles I showed how to make simple Perl scripts for XChat which will change its default behaviour:

    Make a Perl Script to Display Notices in Current Window
    Make a Perl Script to PART/REJOIN a Channel Similar with mIRC's /HOP

    In this article however I will list some of the tips and tricks I consider most popular and useful for the IRC user, leaving all that scripting behind.

    Hide JOIN/PART messages using the conference mode
    The conference mode can be turned on/off using the irc_conf_mode variable (which by default is 0 - disabled). By turning it on, the join/part and quit messages will not be displayed anymore, so you will be able to keep a log from an IRC meeting/tutorial/discussion without those annoying messages. Use it like this:

    /SET irc_conf_mode 1

    If you still want to see the messages on other channels, right-click on the channel button, go to Settings -> Hide Join/Part Messages. Tick (or un-tick, depending if you want to see them) this option.

    Hide the backlog
    Introduced in XChat 2.8.4, this feature will automatically display the last lines from a channel/private log when you open it again. If you want to turn this feature off use:

    /SET text_replay 0

    This will turn off the backlog.

    Show the /WHOIS info in the current window
    The /WHOIS information is shown in the status window by default. However if you are on a channel and you /WHOIS someone, you will probably want the information to be displayed in the same window, instead of having to switch on the status window to see it and then back on the channel. To do so, use:

    /SET irc_whois_front 1

    Change the way events are shown
    You can do this using scripts, which provides a more flexible way of doing it, but I'll show here only how to use the Settings -> Advanced -> Text Events... dialogue.

    For example, the Quit action looks like this by default:

    %C23*%O$t%C23$1 has quit (%O%C23%B%B$2%O%C23)

    However, you may also want to see the person's host, add the third parameter ($3 - host), as specified in the Number and Description fields:

    %C23*%O$t%C23$1 ($3) has quit (%O%C23%B%B$2%O%C23)

    See the screenshot below:



    Change the location and format of logs
    The default format for logs is %n-%c.log, which will log as network-channel/nick.log (e.g. FreeNode-#debian.log). The logs are kept by default in the ~/.xchat2/logs/ directory. However, you may change this and customise it to your likings:

    ~/logs_xchat/%n/%Y_%m_%d_%c.log

    This will log all in the logs_xchat directory inside your home directory, creating a new folder for each network, and using several conversion specifiers for the filename. In the above example, I used:

    %Y for full year digits (e.g. 2009)
    %m for the number of the month (e.g. 01-12)
    %d for the day number (e.g. 01-31)
    %c for the channel/nickname


    You can find all the conversion specifiers here.

    Use shortcuts for last and previous commands
    By default, the up and down arrows are used for these two actions. However I always prefered ^P (CTRL+P) for last command and ^N (CTRL+N) for next command. You can add these two in the Settings -> Advanced -> Keyboard Shortcuts... menu. The screenshot below shows how the ^P command should look like, after clicking Add New and filling the necessary fields. Don't forget to press Enter in the Data 1 field, otherwise the new shortcut will be lost after closing the window (I know, extremely annoying but that's the way XChat implements it).


    That's it for today. In the next part I'll also include several simple scripts and more /SET tips. Also, I recommend to see this page (offsite), it has some great XChat resources, and eventually the XChat scripts and plugins page.Source URL: https://ashesgarrett.blogspot.com/search/label/irc
    Visit ashes garrett for Daily Updated Hairstyles Collection

IRC Clients for Linux Part 2: List of 5 CLI Clients

    A while ago I reviewed 6 GUI clients for IRC, so today I'll continue with the second part with this review of 5 CLI (Command Line Interface) clients.

    BitchX
    This was once the most popular IRC client for Linux, but now it is not maintained anymore and distributions like Debian and Ubuntu don't include it in their repositories. The official IRC channel of BitchX is located on EFNet, on #bitchx.
    Homepage

    Irssi
    Also known as 'the client of the future', Irssi is one of the most popular, well-documented, powerful and configurable IRC client for command line at the current time. It supports Perl scripting and the official website provides hundreds of scripts for any possible task, from now listening and weather scripts to system information scripts. Irssi is one of my favourite applications for CLI, and it really deserves it. Although it can be a little tough to learn it, the FAQ and abundant documentation on the homepage cover every aspect regarding Irssi, from how to use it up to how to create Perl scripts for it. Irssi includes an effective way to switch between networks and channels using the keyboard, and some of the shorcuts are Emacs-like. They can also be changed.
    Homepage
    Irssi 0.8.2 running in Konsole

    Epic4
    This is yet another well-known client, although its interface is not as user-friendly as the one Irssi has. But Epic4 allows you to customise it the way you like via scripts instead of coming with a friendly way of handling how messages are displayed, or how a /WHOIS or /NAMES output is printed. According to the official website, Epic was forked from ircII-2.8.2 in the fall 1994. It uses its own scripting language, called ircII, which borrows many concepts from Perl, Tcl, Ruby and PHP. You can find more help on scripting on the official homepage, here. The last stable version of Epic4 is 2.8, and you can get it from here.
    Homepage

    Epic4 2.6 running in Kubuntu 8.04

    WeeChat
    WeeChat is a user-friendly IRC client which is describes on the homepage as a 'fast, light and extensible IRC client'. It supports Perl, Python and Lua scripts, and provides many other features, like connections to multi-servers, DCC, proxy and SSL support. Together with Irssi, I think WeeChat should be the client of choice for beginners to IRC who want to use a CLI client instead of a GUI one like XChat or Konversation. It's user-friendly and provides a scripting interface, so you can customise it the way you like and turn it into a powerful client which matches your taste. According to the official website, Qt and GTK interfaces are planned for WeeChat.
    Homepage


    TinyIRC
    This is a minimal IRC client, providing a very basic interface and only basic features. I can't recommend it for using IRC on a daily basis, but it is worth a try if you only want to connect to a network fast and just start chatting without the need of features, colours, or scripting languages. It has no TAB completion feature and doesn't seem to support more than one network connection at a time.
    Homepage

    Conclusion
    As a conclusion, I strongly recommend Irssi, followed by WeeChat and Epic4. The first two are powerful enough, flexible, documented and have scripting support, while the latter is a little harder to use (at least in the beginning) and it has its own scripting language. Despite this, Epic4 has the advantage of giving you total control over how you want its interface to look like, and it also provides many scripts on the official website for customising it. BitchX is too old now and it's no longer updated, while TinyIRC offers only the minimum features needed to connect and interract with an IRC server.

    Related articles
    IRC Clients Part 1: List of 6 GUI Clients

    Updated: Sep 17, 2008Source URL: https://ashesgarrett.blogspot.com/search/label/irc
    Visit ashes garrett for Daily Updated Hairstyles Collection

IRC Clients for Linux Part 1: List of 6 GUI Clients

    IRC plays a major role in the Linux development and the community itself, and most distributions and software projects usually have one or more IRC channels (usually on Freenode or, in Debian's case, on OFTC) for discussing issues related to the project or just helping users.

    I decided to put up this list which contains no less than 6 graphical IRC clients for Linux, powerful or user-friendly. I also provided several screenshots where I considered necessary and a brief description for each of them.

    The GUI (Graphical User Interface) clients

    XChat
    XChat is built in GTK and it is one of the most powerful graphical clients for Linux, including scripting (Perl, Python, Tcl) and plugin interface, high configurability via the /set variables (like the conference mode, for example), support for connections to multiple networks (a must-have for any IRC client in my opinion) and much more. The forum and the #xchat @ Freenode channel are very helpful, and the documentation on the official site is abundant too. For GNOME users, a project called xchat-gnome is also available.
    Homepage

    XChat 2.8.4

    Konversation
    Being well-known for the fact that it's one of the most user-friendly clients for Linux, Konversation is also very popular among KDE users. It doesn't have event-based scripting yet, but it provides options for each and every need a user would need. Comes bundled with several default scripts like a media player announcer or a weather script to mention two of them. It integrates in the system tray, includes alerts and is very fast.
    Homepage

    Konversation 1.0.1

    KVirc
    Another user-friendly client for KDE, KVirc provides a scripting interface similar to the one of mIRC for Windows, many configuration options, themes, support for multiple network connections, and much, much more. The only minus it has is that it's a little bloated and slow. Each new release is accompanied by a concept picture and codename, and documentation is abundant and included in the Help menu.
    Homepage

    KVirc 3.2.4 'Anomalies'

    KSirc
    In my opinion KSirc is the weakest client compared to Konversation or KVirc, but it comes by default with the KDE 3.5.x distribution, being included in the kdenetwork package. It supports scripting in Perl.
    Homepage

    KSirc running in Kubuntu 8.04

    Pidgin
    Pidgin is formerly known as Gaim, the GNOME instant messaging client, also including a basic IRC client.
    Homepage

    Pidgin 2.4.1

    Kopete
    The official KDE IM client, Kopete includes a basic IRC client. Although they don't have powerful and fully-featured IRC clients, both Pidgin and Kopete can be used when you also use one or more IM protocols, like Yahoo! or MSN. This way, you can stay on IRC and IM using a single application.
    Homepage

    Creating an IRC account in Kopete

    Kopete 0.12.7 - #debian @ OFTC

    Update: Quassel
    Quassel is a basic KDE 4 IRC client which comes as default in Kubuntu. It does not support event-based scripting, but it offers several useful (and popular) configuration options.
    Homepage


    Installation in Ubuntu
    For every client, just use sudo apt-get install CLIENT_NAME with your user password. For example:

    sudo apt-get install xchat

    Or:

    sudo apt-get install konversation

    There are two versions for KVirc, 3.2.4 and 2.1.3. To install KVirc 3.2.4 use:

    sudo apt-get install kvirc

    And for 2.1.3:

    sudo apt-get install kvirc2

    Updated: March 29, 2009
    Source URL: https://ashesgarrett.blogspot.com/search/label/irc
    Visit ashes garrett for Daily Updated Hairstyles Collection

Blog Archive