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 

VoiceOnJoin by LaCkShaDoW

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
iamdeath
Master


Joined: 11 Feb 2005
Posts: 323
Location: *HeLL*

PostPosted: Sun Jan 04, 2009 2:23 am    Post subject: VoiceOnJoin by LaCkShaDoW Reply with quote

Code:
#######################################################################
#
# VoiceOnJoin vers. 1.0
#
# This TCL when is activated..on a specific channel..it scanes and when #a user joins and he is logged on X @ undernet (it can be modified for #others networks)he gets + from the BoT.When the user is not logged he #dont gets anything :)
#
# You can activate this script using the command on DCC:
#                                        .chanset channel +VoiceOnJoin
#
#                               BLaCkShaDoW Productions @ #TcL-HeLp
#######################################################################



# Here you can set the message that the bot gives to the user who is
# logged on

set message "I noticed that you are logged on..so you will receive voice on this chan !"


#Here you can set the message that the bot gives to the user who is not #logged on

set noxmessage "I noticed that you are not logged..on so you can`t get voice.Please go on #usernames to create your own user !"


#Here you can set your host from your IRC channel Service

set xlog "undernet.org"


#### Do NOT MODIFY ! If you dont know what you are doing #####

setudef flag VoiceOnJoin

bind join -|- "* *" voice

proc voice {nick host hand chan } {
global botnick message xlog noxmessage
if { [channel get $chan VoiceOnJoin] } {
if {![botisop $chan]} { return 0 }
if {[onchan $nick $chan]} {
set mask [getchanhost $nick $chan]
if {[string match *$xlog* [string tolower $mask]]}  {
putquick "NOTICE $nick :$message"
putquick "MODE $chan +v $nick"
} else { putquick "NOTICE $nick :$noxmessage" }
}
}
}


putlog "VoiceOnJoin by LaCkShaDoW Loaded !"


Ok there is a small bug in this script, if the person is logged in X but not using +x this script wont voice that person. The script should work for all those people who are logged in X, so it really shouldnt matter whether he is +x or not, so the author should use RAW instead of getchanhost.

I am currently a little busy when I am free I can fix this script and update it elseif anyone else who has time can do this.

peace
iamdeath
_________________
|AmDeAtH @ Undernet


Death is only the *Beginning*...
Back to top
View user's profile Send private message Visit poster's website
BLaCkShaDoW
Op


Joined: 11 Jan 2009
Posts: 115
Location: Romania

PostPosted: Thu Jan 15, 2009 1:35 pm    Post subject: Reply with quote

The Tcl is done it will apear on egghelp in a few days Smile thanks for the suggestion
_________________
BLaCkShaDoW Production @ WwW.TclScripts.Net
Back to top
View user's profile Send private message Send e-mail Visit poster's website
iamdeath
Master


Joined: 11 Feb 2005
Posts: 323
Location: *HeLL*

PostPosted: Sun Jan 18, 2009 2:46 am    Post subject: Reply with quote

You're most welcome Smile
_________________
|AmDeAtH @ Undernet


Death is only the *Beginning*...
Back to top
View user's profile Send private message Visit poster's website
sutkida
Voice


Joined: 19 Nov 2008
Posts: 12

PostPosted: Mon Jan 19, 2009 12:38 pm    Post subject: Reply with quote

nice script..i am recently using it with my bot..but there's this bug i found..when the user got disconnected and rejoins the channel, the bot still voices the user even if not logged to X anymore..the bot keeps log of the nick and recognize it as if the user is still logged to X and voice the user..
Back to top
View user's profile Send private message Yahoo Messenger
BLaCkShaDoW
Op


Joined: 11 Jan 2009
Posts: 115
Location: Romania

PostPosted: Mon Jan 19, 2009 12:54 pm    Post subject: Reply with quote

I`ve tested it there is no bug with the script Smile the user dont gets voice when he disconnect and get connected again and not logged. Please verify that the user that gets voice doesnt has autovoice on chan Smile
_________________
BLaCkShaDoW Production @ WwW.TclScripts.Net
Back to top
View user's profile Send private message Send e-mail Visit poster's website
sutkida
Voice


Joined: 19 Nov 2008
Posts: 12

PostPosted: Mon Jan 19, 2009 1:12 pm    Post subject: Reply with quote

ok..it works when the user quits and connect and rejoins the channel..but how about if the user just part the channel and rejoin later?tried that and it does voice the user even not logged to X..

i think it only works when the user quits..but when user gets the following errors:

Read error: Operation timed out
Read error: Connection reset by peer
Read error: EOF from client
Ping timeout

the bot will still voice the user when it rejoins the channel and not logged to X..
Back to top
View user's profile Send private message Yahoo Messenger
BLaCkShaDoW
Op


Joined: 11 Jan 2009
Posts: 115
Location: Romania

PostPosted: Mon Jan 19, 2009 5:22 pm    Post subject: Reply with quote

no, the bot doesnt voice if the user parts and rejoins unlogged..or if the user quits and rejoins unlogged. The user gets voice *only* if he joins
logged with +x or without on the specific chan ! Else the bot never gives
voice if the user isn`t logged to the channel service Smile it`s tested Smile
_________________
BLaCkShaDoW Production @ WwW.TclScripts.Net
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases 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