git://git.camperquake.de
/
videosite.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
01b3e34
)
save config on global irssi /save
author
Christian Garbs
<mitch@cgarbs.de>
Sat, 12 Jan 2008 22:27:55 +0000
(23:27 +0100)
committer
Ralf Ertzinger
<sun@lain.camperquake.de>
Sat, 12 Jan 2008 23:04:50 +0000
(
00:04
+0100)
videosite.pl
patch
|
blob
|
history
diff --git
a/videosite.pl
b/videosite.pl
index
620c2cf
..
c987a26
100644
(file)
--- a/
videosite.pl
+++ b/
videosite.pl
@@
-103,9
+103,9
@@
sub cmd_save {
close(CONF);
};
if ($@) {
close(CONF);
};
if ($@) {
- write_irssi(undef, 'Could not save config: %s', $@);
+ write_irssi(undef, '
videosite:
Could not save config: %s', $@);
} else {
} else {
- write_irssi(undef, 'Saved config');
+ write_irssi(undef, '
videosite:
Saved config');
}
}
}
}
@@
-279,6
+279,8
@@
sub init_videosite {
Irssi::signal_add_first('command script load', 'sig_command_script_unload');
Irssi::signal_add_first('command script unload', 'sig_command_script_unload');
Irssi::signal_add_first('command script load', 'sig_command_script_unload');
Irssi::signal_add_first('command script unload', 'sig_command_script_unload');
+ Irssi::signal_add('setup saved', 'cmd_save');
+
Irssi::command_bind('videosite' => \&cmdhandler);
}
Irssi::command_bind('videosite' => \&cmdhandler);
}