Ignore PRIVMSG's if they're from an invalid source.
This commit is contained in:
1 parent
35f58bf5b7
commit
ad799a32a2
2 files changed
+6
-2
No files matched your search
+5
-2
@@ -530,9 +530,12 @@ sub part
|
||||
sub privmsg
|
||||
{
|
||||
my ($svr, @ex) = @_;
|
||||
my %data = API::IRC::usrc(substr($ex[0], 1));
|
||||
my %data = API::IRC::usrc(substr($ex[0], 1));
|
||||
|
||||
my @argv;
|
||||
# Ensure this is coming from a user rather than a server.
|
||||
if ($ex[0] !~ m/!/xsm) { return; }
|
||||
|
||||
my @argv;
|
||||
for (my $i = 4; $i < scalar(@ex); $i++) {
|
||||
push(@argv, $ex[$i]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user