mIRC Home    About    Download    Register    News    Help

Print Thread
#69489 27/01/04 10:00 PM
Joined: Jan 2004
Posts: 2
U
Bowl of petunias
OP Offline
Bowl of petunias
U
Joined: Jan 2004
Posts: 2
This will probley be a peice of cake care some of you guys =D

I was wondering if it was possible to make a auto-op bot, so I could type something like -addop nickhere and it would op them everytime they join the channel?

Thanks in advance =D

#69490 27/01/04 10:18 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
I didn't test it, but this should do the trick:

Code:
on *:TEXT:-addop &:#: {
  var %address = $iif($2 ison $chan, $address($2, 1), $+($2,!*@*))
  if ($aop(%address)) /msg $chan $2 is already on the Auto-Op List
  else /aop %address $chan
}

on *:TEXT:-remop &:#: {
  var %address = $iif($2 ison $chan, $address($2, 1), $+($2,!*@*))
  if (!$aop(%address)) /msg $chan $2 is not on the Auto-Op List
  else /aop -r %address
}


(Copy to wordpad (Start>>Run>>"wordpad") first, then to mirc remotes (alt+r) section)

EDIT:

BTW, the commands are

-addop <name>
Adds the name to the channel's auto-op list
-remop <name>
Removes them from the channel's auto-op list.

Last edited by KingTomato; 27/01/04 10:19 PM.

-KingTomato
#69491 27/01/04 10:50 PM
Joined: Jan 2004
Posts: 2
U
Bowl of petunias
OP Offline
Bowl of petunias
U
Joined: Jan 2004
Posts: 2
either i'm doing something wrong or it does not work, because I can't get it to work, thanks for the help tho =O

#69492 28/01/04 02:38 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Is Auto-Op on?
To check; type /aop
To turn it on; type /aop on

#69493 28/01/04 06:30 AM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
You also might wanna expand a bit when you get it to work -- right now, everyone can add themselves and everyone else in as op.


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius

Link Copied to Clipboard