X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=Commands%2FChannel.pm;fp=Commands%2FChannel.pm;h=edd1146f446313f9f9ec617cf499d23c6186184b;hb=58e53330b10b54a2030e869f4356dbcbf68d10f4;hp=117817e09bc4792b55ecb238fb62ee60e5503ac4;hpb=4d0d8ca826dba5f8baa8829fe02b3eab47eff586;p=NDIRC.git 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;