| View previous topic :: View next topic |
| Author |
Message |
samhain Halfop
Joined: 03 Jan 2007 Posts: 77
|
Posted: Tue Feb 15, 2011 2:49 pm Post subject: Public IP Information Checker modification. |
|
|
hi, This is a great script, But I've seen people using it and flooding the channel, cause I own a big channel, That's why I would like someone to do a few modifications to this script.
The script should reply in notice, and there should been a certain flag of the person who is allowed to check the ipcheck command. So it'd make it more safer and easier to use. the script was coded by Hawkee it's good one but needs to be more safer to be used on big channels, Thanks. |
|
| Back to top |
|
 |
caesar Mint Rubber

Joined: 14 Oct 2001 Posts: 3741 Location: Mint Factory
|
Posted: Tue Feb 15, 2011 4:05 pm Post subject: |
|
|
The 'certain flag' is simple, just change in:
| Code: |
bind pub -|- !ipinfo ipinfo:parser
|
from '-|-' to what flags you wish, where first '-' is global and the second is for channel. For example 'm|o' means 'global master' or 'that specific channel operator'.
As for the 'notice' part just replace the 3 instances of:
| Code: |
puthelp "privmsg $chan :$nick
|
with:
| Code: |
puthelp "privmsg $nick :
|
_________________ Once the game is over, the king and the pawn go back in the same box. |
|
| Back to top |
|
 |
samhain Halfop
Joined: 03 Jan 2007 Posts: 77
|
Posted: Fri Feb 18, 2011 5:24 pm Post subject: |
|
|
Great, works fine.  |
|
| Back to top |
|
 |
caesar Mint Rubber

Joined: 14 Oct 2001 Posts: 3741 Location: Mint Factory
|
Posted: Sat Feb 19, 2011 4:22 am Post subject: |
|
|
Ah, just noticed. Right now it sends a private message, for a notice you should replace 'privmsg' with 'notice'. _________________ Once the game is over, the king and the pawn go back in the same box. |
|
| Back to top |
|
 |
samhain Halfop
Joined: 03 Jan 2007 Posts: 77
|
Posted: Sat Feb 19, 2011 3:57 pm Post subject: |
|
|
thanks, really appreciate the great help  |
|
| Back to top |
|
 |
|