mIRC Home    About    Download    Register    News    Help

Print Thread
#213039 15/06/09 09:13 PM
Joined: Mar 2008
Posts: 33
S
starr Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Mar 2008
Posts: 33
I have the following code in my bot...I know there is a bracket problem somewhere but I just cant see it...any help would be appreciated.
#channelops on

;op on entry
ON @*:JOIN:#pleasure_library, #pleasure_library_ops {
if (me == Pleasure[BOT]) {

; OPS

if ($nick == ThePurpleKat) {
mode $chan +o $nick
}
}
}

; op up on !opup command
ON @*:TEXT:!opup:#pleasure_library,#pleasure_library_ops {
if (me == Pleasure[BOT] {

;OPS

if ($nick == ThePurpleKat) {
mode $chan +o $nick
}
}
}

'op down on !opdown command
ON @*:TEXT:!opdown:#pleasure_library, #pleasure_library_ops {
if (me == Pleasure[BOT]

;OPS

if ($nick == ThePurpleKat) {
mode $chan -o $nick
}
}
}

#channelops end

Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
Hit Ctrl+H in the editor or press the bracket button at the top right. It will tell you where it is.


"if (me == Pleasure[BOT]" is probably your problem though

On a sidenote, you want $me, not "me"


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031

The first line...
ON @*:JOIN:#pleasure_library, #pleasure_library_ops {

should be...
ON @*:JOIN:#pleasure_library, #pleasure_library_ops: {

~ Edit ~
These also...


ON @*:TEXT:!opup:#pleasure_library,#pleasure_library_ops: {

ON @*:TEXT:!opdown:#pleasure_library, #pleasure_library_ops: {

Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
Giving op status with 2-second delay:
Code:
ON @*:JOIN:#pleasure_library,#pleasure_library_ops: {
  if ($me == Pleasure[BOT]) || ($nick == ThePurpleKat) {
    pop 2 $chan $v2
  }
}
ON @*:TEXT:!opup:#pleasure_library,#pleasure_library_ops: {
  if ($me == Pleasure[BOT]) || ($nick == ThePurpleKat) {
    pop 2 $chan $v2
  }
}
ON @*:TEXT:!opdown:#pleasure_library,#pleasure_library_ops: {
  if ($me == Pleasure[BOT]) || ($nick == ThePurpleKat) {
    mode $chan -o $v2
  }
}


Link Copied to Clipboard