From: Michael Andreen Date: Sat, 30 May 2009 19:25:16 +0000 (+0200) Subject: Added hostname command X-Git-Url: https://ruin.nu/git/?a=commitdiff_plain;h=58e53330b10b54a2030e869f4356dbcbf68d10f4;p=NDIRC.git Added hostname command --- diff --git a/Commands/Channel.pm b/Commands/Channel.pm index 117817e..edd1146 100644 --- a/Commands/Channel.pm +++ b/Commands/Channel.pm @@ -97,4 +97,12 @@ WHERE u.hostmask ILIKE $1 AND COALESCE(c.name = $2,TRUE) } } +sub hostname + : Help(Shows your hostname, as seen by the bots.) +{ + my ($self,$c,$msg) = @_; + + $c->reply('Your hostname is: '.$c->host); +} + 1;