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
(from parent 1:
096ea86
)
videosite-irssi: Workaround for broken config_del
author
Ralf Ertzinger
<ralf@skytale.net>
Thu, 2 May 2013 18:10:12 +0000
(20:10 +0200)
committer
Ralf Ertzinger
<ralf@skytale.net>
Thu, 2 May 2013 18:10:12 +0000
(20:10 +0200)
videosite-irssi.pl
patch
|
blob
|
history
diff --git
a/videosite-irssi.pl
b/videosite-irssi.pl
index
f1c9b1d
..
4d3f481
100644
(file)
--- a/
videosite-irssi.pl
+++ b/
videosite-irssi.pl
@@
-172,11
+172,14
@@
sub config_set {
#
# Delete a configuration value. Called by the core.
#
+# Now, according to the configuration Irssi::settings_remove() removes a
+# config settings. This does not work in any irssi version available to me.
+# So just set the key to the canary value.
+#
sub config_del {
my $path = shift;
- my $item = join('.', 'videosite', @{$path});
-
Irssi::settings_remove($item
);
+
config_set($path, "\1"
);
}
#