-}
-
-sub invite
- :Help(Syntax: invite [channel] | If no channel is specified it invites you to all channel you have auto invite access on)
- : Type(pm)
-{
- my ($self,$c,$msg) = @_;
-
- my ($channel) = $msg =~ /^\s*(\S+)?\s*$/ or die 'ARGS';
-
- my @channels;
- if ($channel && $c->check_user_roles('irc_masterinvite')){
- push @channels,$channel;
- }else{
- my @access = ('i');
- push @access, 'I' if $channel;
- my $channels = $c->model->prepare(q{
+};
+
+command op => {
+ help => q(syntax: .op [nicks] | Gives op to the specified nicks, or yourself if no command is given),
+ type => q(channel),
+}, $access;
+
+command deop => {
+ help => q(syntax: .deop [nicks] | Removes op from the specified nicks, or yourself if no command is given),
+ type => q(channel),
+}, $access;
+
+command voice => {
+ help => q(syntax: .voice [nicks] | Gives voice to the specified nicks, or yourself if no command is given),
+ type => q(channel),
+}, $access;
+
+command devoice => {
+ help => q(syntax: .voice [nicks] | Removes voice from the specified nicks, or yourself if no command is given),
+ type => q(channel),
+}, $access;
+
+command invite => {
+ help => q(Syntax: invite [channel] | If no channel is specified it invites you to all channel you have auto invite access on),
+ type => q(pm)
+}, class extends NDIRC::Command {
+ method execute ($c,$msg) {
+ my ($channel) = $msg =~ /^\s*(\S+)?\s*$/ or die 'ARGS';
+
+ my @channels;
+ if ($channel && $c->check_user_roles('irc_masterinvite')){
+ push @channels,$channel;
+ }else{
+ my @access = ('i');
+ push @access, 'I' if $channel;
+ my $channels = $c->model->prepare(q{