sub sort_irc_channels_into_sessions {
- my @channels = $main::config->config_get_keys1('channels');
+ my @channels = config_get_keys1('channels');
foreach my $channel (@channels) {
# FIXME: find out if this channel is already joined
# FIXME: if session changes, reassign the channel
- my $session = $main::config->config_get_key3('channels', $channel, 'session');
+ my $session = config_get_key3('channels', $channel, 'session');
push(@{$main::sessions{$session}{'irc_channels'}}, $channel);
print_msg("assign irc channel '$channel' to session '$session'", DEBUG);
}
$lowercase = shift;
}
- my @languages = $main::config->config_get_keys1('translations');
+ my @languages = config_get_keys1('translations');
# find a word in one or all languages
foreach my $tmp (@languages) {
if (!defined($language) or (defined($language) and $language eq $tmp)) {
- my @tmp2 = $main::config->config_get_keys2('translations', $tmp);
+ my @tmp2 = config_get_keys2('translations', $tmp);
foreach my $tmp2 (@tmp2) {
- my $tmp3 = $main::config->config_get_key3('translations', $tmp, $tmp2);
+ my $tmp3 = config_get_key3('translations', $tmp, $tmp2);
my @tmp3 = ($tmp3);
if ($tmp3 =~ /\|/) {
@tmp3 = split(/\|/, $tmp3);