Simple Inputs

By Jamiie on May 20, 2008

Update: I added a alias to display the commands that can be used. Type /Jcommands to view them

Update: I added a unban command

Update: I changed the nick commands so if you want to op, halfop, or voice your self just type +/-o for op or deop, +/-h for halfop or de-halfop, and +/-v for voice or devoice.

alias Jcommands { 
  echo -a 14 The available channel commands are: 7+/-i14,7 +/-l <limit>14, 7+/-m14, 7+/-p14, 7+/-R14, 7+/-s14, 7+/-k <key>14, 7.i <nick>14, 7.akick <nick> <reason>14, 7.delakick <nick>14, 7.akicklist14, 7.add <nick> <access level>14, 7.del <nick>14, 7.access14.
  echo -a 14 The available nick commands are: 7+/-o <nick>14, 7 +/-h <nick>14, 7+/-v <nick>14, 7.kb <nick>14, 7.ban <nick>14, 7.tkb <nick> <time>14, 7.k <nick>14, 7+/-q <nick>14, 7.unban <nick>14.
}

on *:input:#: {
  if ($regex($1,/^[+-][ceIfijklmnpstzCGMKLNQRSTu]$/)) { mode $chan $1- }
  if ($regex($1,/^[+-][qaovh]$/)) { mode $chan $1 $iif(!$2,$nick,$2) }
  if ($1 == .kb) { ban -k $chan $2 }
  if ($1 == .ban) { mode $chan +b $address($2,2) }
  if ($1 == .tkb) { ban -ku $+ $2 $chan $2 14 You have been banned for7 $3 14Seconds from7 $chan $+ 14. }
  if ($1 == .i) { invite $2 $chan }
  if ($1 == .k) { kick $chan $2 }
  if ($1 == .akick) { msg ChanServ akick $chan add $2 $3 }
  if ($1 == .delakick) { msg ChanServ akick $chan del $2 }
  if ($1 == .akicklist) { msg Chanserv akick $chan list }
  if ($1 == .add) { cs access $chan add $2 $3 }
  if ($1 == .access) { cs access $chan list }
  if ($1 == .del) { cs access $chan del $2 }
  if ($1 == .unban) { mode $chan -b $address($2,2) }
}

Comments

Sign in to comment.
Johnny92   -  Aug 23, 2008

Wow i like this alot. Thanks Good Job

 Respond  
PuNkTuReD   -  May 30, 2008

maybe a \"protect user\" command

 Respond  
napa182   -  May 30, 2008

on ur ban\'s you are just banning the nick so all the person has to do is change nicks and come back maybe do

if ($1 == .ban) { mode $chan +b $address($2,2) }

same thing for unban

if ($1 == .unban) { mode $chan -b $address($2,2) }

and on ur kickban

if ($1 == .kb) { ban -k $chan $2 2 }

you can also shorten some of the code by useing regex ex:

on *:input:*: {
  if ($regex($1,/^[+-][qaovh]$/)) { mode $chan $1 $iif(!$2,$nick,$2) }
  if ($regex($1,/^[+-][impRslk]$/)) { mode $chan $1- }
}
 Respond  
Gummo   -  May 30, 2008

Wouldn\'t .ban and .unban be +b and -b respectively?

 Respond  
Jamiie   -  May 29, 2008

Added a unban command.

 Respond  
Jamiie   -  May 28, 2008

Update, I added alias to display commands.

 Respond  
Jamiie   -  May 28, 2008

Will do. :P

 Respond  
PuNkTuReD   -  May 28, 2008

i gave it a 7
mayb add a option to see what available commands are

 Respond  
Jamiie   -  May 21, 2008

Wow, thanks for the 3 rating. May be useful to some people. :P

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.