$self->server->command("$command $msg");
}
+sub intel_log {
+ my ($c,$planet, $message) = @_;
+ my $log = $c->model->prepare_cached(q{
+INSERT INTO forum_posts (ftid,uid,message) VALUES(
+ (SELECT ftid FROM planets WHERE id = $3)
+ ,(SELECT uid FROM users WHERE hostmask ILIKE $1)
+ ,$2)
+ });
+ $log->execute($c->host,$message,$planet);
+}
+
+sub def_log {
+ my ($c,$call, $message) = @_;
+ my $log = $c->model->prepare(q{
+INSERT INTO forum_posts (ftid,uid,message) VALUES(
+ (SELECT ftid FROM calls WHERE id = $3)
+ ,(SELECT uid FROM users WHERE hostmask ILIKE $1),$2)
+ });
+ $log->execute($c->host,$message,$call);
+}
+
sub _build_roles {
my ($self) = @_;