diff --git a/modules/perleval.pm b/modules/perleval.pm index 0225758b..36a8c544 100644 --- a/modules/perleval.pm +++ b/modules/perleval.pm @@ -5,7 +5,7 @@ package perleval; use base 'ZNC::Module'; sub description { - shift->t('Evaluates perl code') + shift->t_s('Evaluates perl code') } sub wiki_page { @@ -15,7 +15,7 @@ sub wiki_page { sub OnLoad { my $self = shift; if (!$self->GetUser->IsAdmin) { - $_[1] = $self->t('Only admin can load this module'); + $_[1] = $self->t_s('Only admin can load this module'); return 0 } return 1 @@ -26,9 +26,9 @@ sub OnModCommand { my $cmd = shift; my $x = eval $cmd; if ($@) { - $self->PutModule($self->f('Error: %s')->($@)); + $self->PutModule($self->t_f('Error: %s')->($@)); } else { - $self->PutModule($self->f('Result: %s')->($x)); + $self->PutModule($self->t_f('Result: %s')->($x)); } } diff --git a/modules/pyeval.py b/modules/pyeval.py index 524a5366..28ef09d0 100644 --- a/modules/pyeval.py +++ b/modules/pyeval.py @@ -44,7 +44,7 @@ class pyeval(znc.Module, InteractiveInterpreter): def OnLoad(self, args, message): if not self.GetUser().IsAdmin(): - message.s = self.t( + message.s = self.t_s( 'You must have admin privileges to load this module.') return False @@ -78,4 +78,4 @@ class pyeval(znc.Module, InteractiveInterpreter): del self.locals['client'] del self.locals['network'] -pyeval.description = pyeval.t('Evaluates python code') +pyeval.description = pyeval.t_s('Evaluates python code')