Read the script and you should understand how to use. Ops, Half-Ops and Voices people.
If you find any bugs just comment =)
on *:TEXT:`o*:#: {
if ($nick isop $chan)
/mode $chan +o $2
}
on *:TEXT:`dop*:#: {
if ($nick isop $chan)
/mode $chan -o $2
}
on *:TEXT:`hop*:#: {
if ($nick isop $chan)
/mode $chan +h $2
}
on *:TEXT:`dhop*:#: {
if ($nick isop $chan)
/mode $chan -h $2
}
on *:TEXT:`v*:#: {
if ($nick isop $chan) || ($nick ishop $chan) {
/mode $chan +v $2
}
}
on *:TEXT:`dv*:#: {
if ($nick isop $chan) || ($nick ishop $chan) {
/mode $chan -v $2
}
}
Mazter_1, for owner status, you can use:
if ($nick isowner $chan) {
The isowner operator will match the user nick mode "q". This operator may or may not work for standard ircd servers. If that doesn't work for your network, use
if ($nick($chan,$nick,~)) {
where the ~ indicates he or she is an owner.
maotulua wrote:> I want to say Hi to ops only upon myself entering a chat room, how would i accomplish this within a script ?
on me:*:join:#:{
.timerhi 1 3 greetings #
}
alias -l greetings {
var %h, %g 1
while $nick($1,%g,a,rv) {
%h = %h $v1
msg $1 Hello to %h
inc %g
}
}
There will be a 3-second delay when you join a channel before the code gets triggered. This is to wait til the ial is filled.
(d)?(o|v|(h)?op)$/iS)) && ($2 ison #) { $iif(!$nick(#,$2,hov),mode # $replace($1,
v,+v,o,+o,
hop,+h) $2)dv,-v,
dop,-o,`dhop,-h) $2)any suggestion about tht jethro_ ?
how to make it work nicely if we changes the : on :text::#: to: on :input::#: for selfcontrol ??
on @*:INPUT:#: {
if ($regex($1,/^`(d)?(o|v|(h)?op)$/iS)) && ($2 ison #) {
$iif(!$nick(#,$2,hov),mode # $replace($1,`v,+v,`o,+o,`hop,+h) $2)
$iif($nick(#,$2,hov),mode # $replace($1,`dv,-v,`dop,-o,`dhop,-h) $2)
}
}
Same syntax: v,
dv, o,
dop, hop, and
dhop NickHere
Make sure you're opped in channel.
on :text::#:{
if ($2) {
if ($nick ishop $chan || $nick isop $chan) {
if ($1 == v) mode $chan +v $2 if ($1 ==
dv) mde $chan -v $2
if ($nick isop $chan) {
if ($1 == o ) mode $chan +o $2 if ($1 ==
dop) mode $chan -o $2
if ($1 == hop) mode $chan +h $2 if ($1 ==
dhop) mode $chan -h $2
}
}
else msg $chan You dont have access to this command.
}
else msg $chan Please specify a nick.
}
on *:text:*:#:{
if ($2) {
if ($nick ishop $chan || $nick isop $chan) {
if ($1 == `v) mode $chan +v $2
if ($1 == `dv) mde $chan -v $2
if ($nick isop $chan) {
if ($1 == `o ) mode $chan +o $2
if ($1 == `dop) mode $chan -o $2
if ($1 == `hop) mode $chan +h $2
if ($1 == `dhop) mode $chan -h $2
}
}
else msg $chan You dont have access to this command.
}
else msg $chan Please specify a nick.
}
all the on texts are together
shows else msgs
*saves u 10 lines of script :P