mIRC Homepage
Posted By: KoRn18 mode - 26/08/03 11:41 PM
in an elseif statement how can i get change modes from my bot using
!mode (+,-)[ntimslk] 99 pass
Posted By: codemastr Re: mode - 26/08/03 11:44 PM
What?
Posted By: KoRn18 Re: mode - 26/08/03 11:47 PM
lol i want to change channel modes using on text using that
!mode thing i said
Posted By: codemastr Re: mode - 26/08/03 11:49 PM
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
Posted By: KoRn18 Re: mode - 26/08/03 11:50 PM
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
Posted By: codemastr Re: mode - 26/08/03 11:53 PM
Well unless I see the code, and see how you're doing it, I can't answer your question.
Posted By: KoRn18 Re: mode - 26/08/03 11:56 PM
Code:
on @15:text:!*:%chan: {
  ....
  elseif ($1 == !mode) { mode %chan $2 }
}

i get no errors, but nothing happens
Posted By: codemastr Re: mode - 26/08/03 11:58 PM
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
Posted By: KoRn18 Re: mode - 26/08/03 11:59 PM
yeah, and yeah...how can i fix that so it only does channel modes and not voice op hops?
Posted By: codemastr Re: mode - 27/08/03 12:02 AM
elseif ($1 == !mode) {
if (o isin $2 || h isin $2 || v isin $2) return
mode %chan $2-
}
Posted By: KoRn18 Re: mode - 27/08/03 12:06 AM
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
Posted By: Collective Re: mode - 27/08/03 12:07 AM
You are wrong, the return command stops it.
© mIRC Discussion Forums