my $val;
- Irssi::settings_add_str('videosite', $item, "\0");
+ Irssi::settings_add_str('videosite', $item, "\1");
$val = Irssi::settings_get_str($item);
- return ($val ne "\0")?$val:undef;
+ return ($val ne "\1")?$val:undef;
}
#
my $path = shift;
my $item = join('.', 'videosite', @{$path});
- Irssi::settings_add_str('videosite', $item, "\0");
- return Irssi::settings_get_str($item) ne "\0";
+ Irssi::settings_add_str('videosite', $item, "\1");
+ return Irssi::settings_get_str($item) ne "\1";
}
#
my $value = shift;
my $item = join('.', 'videosite', @{$path});
- Irssi::settings_add_str('videosite', $item, "\0");
+ Irssi::settings_add_str('videosite', $item, "\1");
Irssi::settings_set_str($item, $value);
}
#
# 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");
}
#