mIRC Home    About    Download    Register    News    Help

Print Thread
#44308 26/08/03 11:41 PM
Joined: Aug 2003
Posts: 148
K
KoRn18 Offline OP
Vogon poet
OP Offline
Vogon poet
K
Joined: Aug 2003
Posts: 148
in an elseif statement how can i get change modes from my bot using
!mode (+,-)[ntimslk] 99 pass

Last edited by KoRn18; 26/08/03 11:49 PM.

_________
may death strike you.
#44309 26/08/03 11:44 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
What?

#44310 26/08/03 11:47 PM
Joined: Aug 2003
Posts: 148
K
KoRn18 Offline OP
Vogon poet
OP Offline
Vogon poet
K
Joined: Aug 2003
Posts: 148
lol i want to change channel modes using on text using that
!mode thing i said


_________
may death strike you.
#44311 26/08/03 11:49 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Well that would have nothing to do with an elseif.

ON master:TEXT:!mode *:#thechannelhere:{
.mode $chan $2
}

Then anyone with the user level master can type
!mode the_modes_here

#44312 26/08/03 11:50 PM
Joined: Aug 2003
Posts: 148
K
KoRn18 Offline OP
Vogon poet
OP Offline
Vogon poet
K
Joined: Aug 2003
Posts: 148
i have a large on text event with many different !things and im trying to add !mode but i cant figure it out so it works right


_________
may death strike you.
#44313 26/08/03 11:53 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Well unless I see the code, and see how you're doing it, I can't answer your question.

#44314 26/08/03 11:56 PM
Joined: Aug 2003
Posts: 148
K
KoRn18 Offline OP
Vogon poet
OP Offline
Vogon poet
K
Joined: Aug 2003
Posts: 148
Code:
on @15:text:!*:%chan: {
  ....
  elseif ($1 == !mode) { mode %chan $2 }
}

i get no errors, but nothing happens


_________
may death strike you.
#44315 26/08/03 11:58 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Are you saying the problem is you can't use +lk paramters? if so, do $2- instead of just $2

But that will also let people do things like !mode +o some_guy

#44316 26/08/03 11:59 PM
Joined: Aug 2003
Posts: 148
K
KoRn18 Offline OP
Vogon poet
OP Offline
Vogon poet
K
Joined: Aug 2003
Posts: 148
yeah, and yeah...how can i fix that so it only does channel modes and not voice op hops?


_________
may death strike you.
#44317 27/08/03 12:02 AM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
elseif ($1 == !mode) {
if (o isin $2 || h isin $2 || v isin $2) return
mode %chan $2-
}

#44318 27/08/03 12:06 AM
Joined: Aug 2003
Posts: 148
K
KoRn18 Offline OP
Vogon poet
OP Offline
Vogon poet
K
Joined: Aug 2003
Posts: 148
maybe im wrong but that looks like it will only let people op voice or hop people which is the oposite of what i want


_________
may death strike you.
#44319 27/08/03 12:07 AM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
You are wrong, the return command stops it.


Link Copied to Clipboard