Irssi core bugs

Notice: Undefined index: tasklist_type in /var/www/bugs.irssi.org/includes/class.tpl.php(128) : eval()'d code on line 85 Notice: Undefined index: tasklist_type in /var/www/bugs.irssi.org/includes/class.tpl.php(128) : eval()'d code on line 90
  • Status Unconfirmed
  • Percent Complete
    0%
  • Task Type Feature Request
  • Category core
  • Assigned To No-one
  • Operating System Linux
  • Severity Medium
  • Priority Normal
  • Reported Version Irssi SVN
  • Due in Version Undecided
  • Due Date Undecided
  • Votes 0
  • Private No
Attached to Project: Irssi core bugs
Opened by kyak (kyak) - 2011-12-26

FS#829 - Special variable for a hostname [patch]

Hi,

By looking into the list of irssi special variables here: http://irssi.org/documentation/special_vars i couldn't help noticing that there is no expandos for a hostname. There is $X, but it expands to user@host, while i need just a host.

The motivation is to be able add a host to the right of a nickname in the statusbar. Currently it is not possible to achieve this by editing config/theme file. It should be possible to add a statusbar item via perl script, but i guess it's not a good day for perl scripting today...

Anyway, attached is the patch that adds $x expandos, which expands to a hostname and works pretty similar to $X (i.e. first try the result of /userhost, then fallback to gethostbyname).

Thanks!

This task does not depend on any other tasks.

Loading...