in an elseif statement how can i get change modes from my bot using
!mode (+,-)[ntimslk] 99 pass
lol i want to change channel modes using on text using that
!mode thing i said
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
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
Well unless I see the code, and see how you're doing it, I can't answer your question.
on @15:text:!*:%chan: {
....
elseif ($1 == !mode) { mode %chan $2 }
}
i get no errors, but nothing happens
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
yeah, and yeah...how can i fix that so it only does channel modes and not voice op hops?
elseif ($1 == !mode) {
if (o isin $2 || h isin $2 || v isin $2) return
mode %chan $2-
}
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
You are wrong, the return command stops it.