Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Moar stuff

  • Loading branch information...
commit 3877e68009eb5af5c1699c09374952b00abd38ec 1 parent 836837c
@grickit authored
Showing with 11 additions and 0 deletions.
  1. +11 −0 parsers/new_parser/IRCParser.pm
View
11 parsers/new_parser/IRCParser.pm
@@ -82,4 +82,15 @@ sub authError { #sender,target,location
actOut('MESSAGE',$_[1],"$_[0]: Sorry. You don't have permission to do that in $_[2].");
}
+sub parseMessage { #string
+ my $string = shift;
+ my ($sender,$account,$hostname,$command,$target,$message,$event,$receiver);
+
+ if ($string =~ /^PING(.*)$/i) {
+ ACT('LITERAL',undef,"send_server_message>PONG$1");
+ ($sender, $account, $hostname, $command, $target, $message) = ('','','','','','');
+ $event = 'server_ping';
+ }
+}
+
1;
Please sign in to comment.
Something went wrong with that request. Please try again.