egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Devoice A BlackList User On Join

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
Striker
Voice


Joined: 17 Apr 2012
Posts: 3

PostPosted: Tue Apr 17, 2012 4:44 am    Post subject: Devoice A BlackList User On Join Reply with quote

Hello I Need A Small Script For Devoice Black List User.
But The Bot Recognize The BlackList User From Their Host For Example I Want To Add Host 119.73.* To Black List.
Any User Join From This Ip Range The Bot Will Auto Devoice The User
Waiting For Reply Thanks Smile
Back to top
View user's profile Send private message
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1175

PostPosted: Tue Apr 17, 2012 11:01 am    Post subject: Re: Devoice A BlackList User On Join Reply with quote

Are the actual IPs hidden? ... some irc servers show not the IP of a user, but a hostmask (or whatever they call it).

Do /whois <nick>
on a few users, and see what you get.

Then, you can experiment:
Add a user to your bot. Just make up a handle.
Then do:
.+host <handle> 119.73.*
or whatever seems to match, based on what you learned with the /whois

Check your work, with:
.whois <handle>
and examine the HOSTS line

Then do:
.chatter <handle> +q
to give this user the q flag

You can read about the flags with:
.help whois

This is the q flag:
q - quiet (user cannot gain voice on any channel)

Note:
If you try to experiment, by voicing this user, to see if the bot will de-voice them, do the voicing by somebody other than yourself (owner) or bot itself.

I hope this helps.
Back to top
View user's profile Send private message
Striker
Voice


Joined: 17 Apr 2012
Posts: 3

PostPosted: Tue Apr 17, 2012 11:58 am    Post subject: Reply with quote

Not Working Sad
Can U Write A Code Please
Back to top
View user's profile Send private message
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1175

PostPosted: Tue Apr 17, 2012 12:17 pm    Post subject: Reply with quote

Striker wrote:
Not Working Sad


You forgot to describe exactly what you did, and exactly what happened.

Quote:

Can U Write A Code Please


Not without more information.
Back to top
View user's profile Send private message
Striker
Voice


Joined: 17 Apr 2012
Posts: 3

PostPosted: Tue Apr 17, 2012 12:25 pm    Post subject: Reply with quote

On Mirc My Addon Looks Like
Code:

on @*:join:#:{
if ($regex($wildsite,/1[01][0-9](\.|-)7[3-9]+/)) {
mode # -v $nick
}

I Need The Same Code in tcl
Back to top
View user's profile Send private message
Madalin
Master


Joined: 24 Jun 2005
Posts: 310
Location: Constanta, Romania

PostPosted: Sun Jan 27, 2013 9:30 am    Post subject: Reply with quote

Try this

Code:

bind JOIN - * egghelp:join

set temp(jdevoice) #channel

proc egghelp:join {nick uhost hand chan} {
   global temp

   if {[string tolower $temp(jdevoice)] == [string tolower $chan]} {
      if {[string match -nocase "119.73.*" [lindex [split $uhost @] 1]]} {
         pushmode $chan -v $nick
      }
   }
}

_________________
https://github.com/MadaliNTCL - To chat with me: https://tawk.to/MadaliNTCL
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber