Skip to content

Instantly share code, notes, and snippets.

@neuro-sys
Created June 9, 2014 09:10
Show Gist options
  • Save neuro-sys/b5400842de91a0d48cdc to your computer and use it in GitHub Desktop.
Save neuro-sys/b5400842de91a0d48cdc to your computer and use it in GitHub Desktop.
my simple irssi config loader
my @parm;
sub init {
my ($data, $server, $witem) = @_;
@parm = split(/ +/, $data);
$server->command("nick $parm[0]");
$server->command("msg nickserv identify $parm[1]");
$server->command("join #archlinux-tr");
$server->command("join #pyistanbul");
$server->command("join ##mass");
$server->command("join ##javaee");
$server->command("join #linguistics");
$server->command("join #linguistics");
}
Irssi::command_bind('myload', 'init');
sub server_ready {
}
Irssi::signal_add("server incoming", "server_ready")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment