This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

on join in my chan - add user

Old posts that have not been replied to for several years.
Locked
s
saerd
Voice
Posts: 21
Joined: Wed Feb 11, 2004 12:33 pm

on join in my chan - add user

Post by saerd »

hi all!!
i need a tcl script that:
when a user join in my channel, my eggdrop add him like "friend" in userlist:

.+user user user!ident@host +f

many thanks in advance!!!
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

what if 23874634 clones enter, you want them all as friends?
s
saerd
Voice
Posts: 21
Joined: Wed Feb 11, 2004 12:33 pm

Post by saerd »

demond wrote:what if 23874634 clones enter, you want them all as friends?
hi demon,
thanks for the fast reply!!
i need this script, in my chan do not join clones...so there aren't problems :)
so, can you help me ?
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

Post by Ofloo »

i think there is a way for a bot to auto add users .. or check the tcl archieve there is certainly a script for this also don't just add users on join cause they might allready exist and use different nicks ..
XplaiN but think of me as stupid
s
saerd
Voice
Posts: 21
Joined: Wed Feb 11, 2004 12:33 pm

Post by saerd »

Ofloo wrote:i think there is a way for a bot to auto add users .. or check the tcl archieve there is certainly a script for this also don't just add users on join cause they might allready exist and use different nicks ..
i ofloo..i need this script for my chan and my private net :)
so, i try to find it in TCL Archive, but there are script too many compless;
i need a simple script that:

1) user join
2) eggdrop add user +fv

thanks :)
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Try the search in the tcl archive and use 'autovoice' as your keyword. I recollect seeing such a script some time ago.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

Code: Select all

bind join - * foo
proc foo {n u h c} {
  if ![validuser $h] {
    adduser $n [maskhost $n!$u]
    chattr $n +f
  }
}
s
saerd
Voice
Posts: 21
Joined: Wed Feb 11, 2004 12:33 pm

Post by saerd »

demond wrote:

Code: Select all

bind join - * foo
proc foo {n u h c} {
  if ![validuser $h] {
    adduser $n [maskhost $n!$u]
    chattr $n +f
  }
}
hi demond, thanks for the reply!!
it's possible to make the last modify to this script ??
if the user is in userlist, and the host is "different" add the new host.
it's possible ??
thanks!!
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

what you demand is impossible

eggdrop recognizes a botuser by his/her hostmask on IRC

if that hostmask is unknown, the bot doesn't recognize that person as a valid user
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

I think what he mean't was, if that a user joins with a host and that host is not already in the added in the .user file then only go ahead and add it.

However even if a user is already added and he joins, it would consider to overwrite his previous hostmask and give him the same flags anyway.
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

awyeah wrote:I think what he mean't was, if that a user joins with a host and that host is not already in the added in the .user file then only go ahead and add it.

However even if a user is already added and he joins, it would consider to overwrite his previous hostmask and give him the same flags anyway.
what's ".user file"???

"userfile"? if so, if that nick is not recognized as valid bothandle (that is, its hostmask, as you put it, "is not already in the added in the .user file"), the nick is added as botuser and given +f flag

"user's record in userfile"? if so, an uknown user (his/her hostmask is not in the userfile) would'n be recognized at all, therefore you can't add that hostmask to something that doesn't exist, you need to create it first
K
KevKev
Halfop
Posts: 67
Joined: Fri Oct 03, 2003 5:15 am

Post by KevKev »

easy. on the original user add specify the hostmask of $nick!*@*

Massively insecure. but his origiginal request already indicates his lack of desire for any semblance of security :)
Locked