diff --git a/PBot/FactoidCommands.pm b/PBot/FactoidCommands.pm index 10bc39b9..ee402df8 100644 --- a/PBot/FactoidCommands.pm +++ b/PBot/FactoidCommands.pm @@ -282,7 +282,7 @@ sub factadd { $self->{pbot}->factoids->add_factoid('text', $from_chan, $nick, $keyword, $text); $self->{pbot}->logger->log("$nick!$user\@$host added [$from_chan] $keyword => $text\n"); - return "/msg $nick '$keyword' added to " . ($from_chan eq '.*' ? 'default channel' : $from_chan) . "."; + return "/msg $nick '$keyword' added to " . ($from_chan eq '.*' ? 'global channel' : $from_chan) . "."; } sub factrem { @@ -314,7 +314,7 @@ sub factrem { $self->{pbot}->logger->log("$nick!$user\@$host removed [$channel][$trigger][" . $factoids->{$channel}->{$trigger}->{action} . "]\n"); $self->{pbot}->factoids->remove_factoid($channel, $trigger); - return "/msg $nick $trigger removed from " . ($channel eq '.*' ? 'default channel' : $channel) . "."; + return "/msg $nick $trigger removed from " . ($channel eq '.*' ? 'global channel' : $channel) . "."; } sub histogram { @@ -388,7 +388,7 @@ sub factinfo { my $created_ago = ago(gettimeofday - $factoids->{$channel}->{$trigger}->{created_on}); my $ref_ago = ago(gettimeofday - $factoids->{$channel}->{$trigger}->{last_referenced_on}) if defined $factoids->{$channel}->{$trigger}->{last_referenced_on}; - $chan = ($channel eq '.*' ? 'default channel' : $channel); + $chan = ($channel eq '.*' ? 'global channel' : $channel); # factoid if($factoids->{$channel}->{$trigger}->{type} eq 'text') { @@ -554,7 +554,7 @@ sub factfind { $i++; if($chan ne $last_chan) { - $text .= $chan eq '.*' ? "[default channel] " : "[$chan] "; + $text .= $chan eq '.*' ? "[global channel] " : "[$chan] "; $last_chan = $chan; } $text .= "$trigger "; @@ -569,11 +569,11 @@ sub factfind { if($i == 1) { chop $text; - return "found one factoid submitted for " . ($last_chan eq '.*' ? 'default channel' : $last_chan) . " " . $argtype . ": '$last_trigger' is '" . $factoids->{$last_chan}->{$last_trigger}->{action} . "'"; + return "found one factoid submitted for " . ($last_chan eq '.*' ? 'global channel' : $last_chan) . " " . $argtype . ": '$last_trigger' is '" . $factoids->{$last_chan}->{$last_trigger}->{action} . "'"; } else { return "$i factoids " . $argtype . ": $text" unless $i == 0; - my $chans = (defined $channel ? ($channel eq '.*' ? 'default channel' : $channel) : 'any channels'); + my $chans = (defined $channel ? ($channel eq '.*' ? 'global channel' : $channel) : 'any channels'); return "No factoids " . $argtype . " submitted for $chans"; } } diff --git a/PBot/Factoids.pm b/PBot/Factoids.pm index 28a872e8..6796e17b 100644 --- a/PBot/Factoids.pm +++ b/PBot/Factoids.pm @@ -120,13 +120,14 @@ sub export_factoids { open FILE, "> $filename" or return "Could not open export path."; my $time = localtime; - print FILE "
Generated at $time$trigger is " . encode_entities($self->factoids->hash->{$channel}->{$trigger}->{action}) . " | \n"; - print FILE "- submitted by " . $self->factoids->hash->{$channel}->{$trigger}->{owner} . " " . localtime($self->factoids->hash->{$channel}->{$trigger}->{created_on}) . "\n | \n\n";
+ print FILE "- submitted by " . $self->factoids->hash->{$channel}->{$trigger}->{owner} . " " . localtime($self->factoids->hash->{$channel}->{$trigger}->{created_on}) . "\n | \n\n";
}
}
print FILE "