sub reply {
my ($self,$msg) = @_;
- $self->message($self->reply_string , $msg);
+ my @command = split / /, $self->reply_string;
+ $self->message(@command, $msg);
}
sub message {
- my ($self,$command,$msg) = @_;
+ my ($self,$command, $target, $msg) = @_;
$msg =~ s`<b>(.*?)</b>`${\(chr(2))}$1${\(chr(15))}`gi;
$msg =~ s`<c(\d+)>(.*?)</c>`${\(chr(3))}$1$2${\(chr(15))}`gi;
- $self->server->command("$command $msg");
+ $self->command($command, $target, $msg);
+}
+
+sub command {
+ my ($self,@command) = @_;
+
+ $self->server->yield(@command);
}
sub intel_log {