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.

adduser in tcl and add flags +d-p global

Old posts that have not been replied to for several years.
Locked
V
Volume
Halfop
Posts: 84
Joined: Fri May 23, 2003 5:08 am

adduser in tcl and add flags +d-p global

Post by Volume »

hello,
i need info for this option wenn user use colors than the bot adding this user an give him the flags +dk-p global.
if the user exist by this host than give the exist user this global flags.
problem the bot must search the user by the host in the userfile.
the nick is not often the same nick on the partyline.
my commands are:
adduser $nick *!$uhost
chattr *!$uhost +dk-p

the adduser command works but the chattr command dont work.
what have i false ?

if the adduser command ok when the user exists by the same host but the nick is different ?

please help me. thank you very much.
s
spock
Master
Posts: 319
Joined: Thu Dec 12, 2002 8:40 pm

Post by spock »

"validuser" and "nick2hand" would be useful.
photon?
V
Volume
Halfop
Posts: 84
Joined: Fri May 23, 2003 5:08 am

@spock

Post by Volume »

spock wrote:"validuser" and "nick2hand" would be useful.
can you help me witch i must scripting this ? my english is too bad and the tcl-commands.doc is not a good help for me.
thank you very much
User avatar
Papillon
Owner
Posts: 724
Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no

Post by Papillon »

Code: Select all

chattr [nick2hand $nick] +dk-p
Elen sila lúmenn' omentielvo
V
Volume
Halfop
Posts: 84
Joined: Fri May 23, 2003 5:08 am

@Papillon

Post by Volume »

Papillon wrote:

Code: Select all

chattr [nick2hand $nick] +dk-p
Great :) this works, but i have a problem:
i would adduser with host *!eros@*.dip.t-dialin.net
but the

Code: Select all

set hostban "*!*[string range $uhost [string first "@" $uhost] end]"
overwriten the *!$uhost adding from the global ban host :(
can someone help me ?

the globalban is better bans with this host: *!*@p508C2601.dip.t-dialin.net
and the adduser host is better with this host *!eros@*.dip.t-dialin.net

Code: Select all

adduser $nick *!$uhost
chattr [nick2hand $nick] +d-p
set hostban "*!*[string range $uhost [string first "@" $uhost] end]"
set globban "newban $hostban nocolors.tcl nocolors 1440 sticky"
putkick $chan $nick "no colors !!!"
utimer 1 $globban
[12:06:01] <Majonas> .match eft
[12:06:01] <Elaine> [12:06] #Majonas# match eft
[12:06:01] <Elaine> *** Vergleiche 'eft':
[12:06:01] <Elaine> HANDLE PASS NOTES FLAGS LAST
[12:06:01] <Elaine> eft no 0 d 12:06 (#heidelberg)
[12:06:01] <Elaine> HOSTS: *!eros@p508C2601.dip.t-dialin.net

like can i autoadd this host:
HOSTS: *!eros@*.dip.t-dialin.net
this is better[/code]
User avatar
Papillon
Owner
Posts: 724
Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no

Post by Papillon »

try this

Code: Select all

set addhost [lindex [split $uhost @] 0]@[lindex [split [maskhost $uhost] @] 1]
adduser $nick *!$addhost 
chattr [nick2hand $nick] +d-p 
set hostban "*!*[string range $uhost [string first "@" $uhost] end]"
Elen sila lúmenn' omentielvo
V
Volume
Halfop
Posts: 84
Joined: Fri May 23, 2003 5:08 am

@Papillon

Post by Volume »

Papillon wrote:try this

Code: Select all

set addhost [lindex [split $uhost @] 0]@[lindex [split [maskhost $uhost] @] 1]
adduser $nick *!$addhost 
chattr [nick2hand $nick] +d-p 
set hostban "*!*[string range $uhost [string first "@" $uhost] end]"
thank you :)

can you help me by my last problem ?
i would this user boot from the partyline from all bots in the botnet
but this dont works

Code: Select all

boot [nick2hand $nick@*]
Locked