mirror of
https://github.com/znc/znc.git
synced 2026-08-07 09:22:55 +02:00
Fix newly introduced warning in modperl
This commit is contained in:
@@ -67,7 +67,7 @@ namespace {
|
||||
}
|
||||
}
|
||||
#define PSTART_IDF(Func) PSTART; XPUSHs(GetPerlObj()); PUSH_STR(#Func)
|
||||
#define PCALLMOD(Error, Success) PCALL("ZNC::Core::CallModFunc"); if (SvTRUE(ERRSV)) { DEBUG("Perl hook died with: " + PString(ERRSV)); Error; } else { if (!SvIV(ST(0))) { Error; } Success; } PEND
|
||||
#define PCALLMOD(Error, Success) PCALL("ZNC::Core::CallModFunc"); if (SvTRUE(ERRSV)) { DEBUG("Perl hook died with: " + PString(ERRSV)); Error; } else if (SvIV(ST(0))) { Success; } else { Error; } PEND
|
||||
|
||||
EOF
|
||||
|
||||
|
||||
@@ -223,7 +223,7 @@ sub CallModFunc {
|
||||
my $func = shift;
|
||||
my @arg = @_;
|
||||
my $res = $pmod->$func(@arg);
|
||||
(defined $res, $res, @arg)
|
||||
(defined $res, $res//0, @arg)
|
||||
}
|
||||
|
||||
sub CallTimer {
|
||||
|
||||
Reference in New Issue
Block a user