mIRC Home    About    Download    Register    News    Help

Print Thread
Page 2 of 2 1 2
Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
Originally Posted By: VictriX
about the "!refresh" command.
only founder can do it.
and the function of it, is, it returns the person's token to the normal one, which is 900.

This is what I did. Only the channel founder (who has +q/~) can use the !refresh command on other people.

In your example:
- [TLU]MrKHmER can't use !refresh because he doesn't have +q
- KdnkServ can't use refresh because he's running the code (for KdnkServ to be able to use !refresh you need an on INPUT event)

Joined: Dec 2008
Posts: 24
H
hCK Offline OP
Ameglian cow
OP Offline
Ameglian cow
H
Joined: Dec 2008
Posts: 24
sir can i assign [TLU]MrKHmER can be the refresher, he is the only 1 can do the !refresh.

instead my bot will +q the person to !refresh.

thanks!

Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
In this example [TLU]MrKHmER has to be a channel op or higher and you have to replace *!*@host with whatever //echo -a $address([TLU]MrKHmER,2) returns.
If [TLU]MrKHmER has a dynamic IP address this can be troublesome. In that case you could use another ban mask. For example $address($nick,1) which matches *!*user@*.host
You can remove the ($nick isop $chan) check if you want him to be able to use the command at all times.
Code:
on *:TEXT:!refresh *:#channel:{
  if ($address($nick,2) == *!*@host) && ($nick isop $chan) && ($$2 ison $chan) {
    write -s $+ $v1 mplist.txt $v1 900
    mode $chan +oa $2 $2
  }
}


P.s. The code you have is old. Check my earlier post. wink

Last edited by 5618; 25/12/08 02:28 PM.
Joined: Dec 2008
Posts: 24
H
hCK Offline OP
Ameglian cow
OP Offline
Ameglian cow
H
Joined: Dec 2008
Posts: 24
ok sir thanks.

Page 2 of 2 1 2

Link Copied to Clipboard