]> ruin.nu Git - NDIRC.git/blobdiff - Commands/Channel.pm
Sms send and status commands
[NDIRC.git] / Commands / Channel.pm
index 117817e09bc4792b55ecb238fb62ee60e5503ac4..c30c632650d0b17ffd43a430f66f1d7bc002428e 100644 (file)
@@ -71,10 +71,8 @@ sub invite
 
        my @channels;
        if ($channel && $c->check_user_roles('irc_masterinvite')){
-               print "master $channel";
                push @channels,$channel;
        }else{
-               print "master $channel";
                my @access = ('auto_invite');
                push @access, 'invite' if $channel;
                my $channels = $c->model->prepare(q{
@@ -92,9 +90,16 @@ WHERE u.hostmask ILIKE $1 AND COALESCE(c.name = $2,TRUE)
                }
        }
        for (@channels){
-               print;
                $c->server->command("invite ". $c->nick ." $_");
        }
 }
 
+sub hostname
+       : Help(Shows your hostname, as seen by the bots.)
+{
+       my ($self,$c,$msg) = @_;
+
+       $c->reply('Your hostname is: '.$c->host);
+}
+
 1;