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.

permident

Old posts that have not been replied to for several years.
Locked
User avatar
duofruo
Halfop
Posts: 94
Joined: Thu Oct 23, 2003 3:17 pm
Location: Ploiesti@.ro
Contact:

permident

Post by duofruo »

The beginner need another thing

Code: Select all

proc msg_lol_permident {nick host hand arg} {
        set arg [charfilter $arg]
        if {$hand == "*"} {return 0}
        global botnick
        if {[llength $arg] < 1} {
                puthelp "PRIVMSG $nick :\002Usage:\002 permident <password> \[nick!user@host\]"
                return 0
        }
        set mask [lindex $arg 1]
        if {![passwdok $hand [lindex $arg 0]]} {
                puthelp "PRIVMSG $nick :Invalid password \002Usage:\002 permident <password> \[user@host\]"
                return 0
        }
        if {[passwdok $hand ""]} {
                puthelp "PRIVMSG $nick :You must set a password: pass <your_new_password>"
                return 0
        }
        set find 0
        foreach ch [channels] {
                if {[onchan $nick $ch]} {
                        set find 1
                        break
                }
        }
        if {$find == 0 && $mask == ""} {
                puthelp "PRIVMSG $nick :You must be in one of my chans to be permidentified, or use: permident <password> <us$
                return 0
        }
        if {$mask == ""} {
                setuser $hand xtra permident *!$host
        } {
                setuser $hand xtra permident $mask
        }
        puthelp "PRIVMSG $nick :You are now permidentified with this mask: [getuser $hand xtra permident]. Use \002unpermiden"
}
This a permident script from lol. This works only whith /msg $botnick permident pass . I wana insert a pub command of !permident , that will set the permident of the user whithout puting the pass ( of course )

I try this

Code: Select all

bind v|v !permident pub_lol_permident 
proc pub_lol_permident {nick host hand chan arg} {
        set arg [charfilter $arg]
        if {$hand == "*"} {return 0}
        global botnick
        set mask [lindex $arg 1]
        if {$mask == ""} {
                setuser $hand xtra permident *!$host
        } {
                setuser $hand xtra permident $mask
        }
        puthelp "PRIVMSG $nick :You are now permidentified with this mask:  [getuser $hand xtra permident]. Use \002unpermident"
}
I try to make, but shet. I got errors like
[18:49] bad type, should be one of: act, away, bcst, bot, chat, chjn, chof, chon, chpt, ctcp, ctcr, dcc, disc, evnt, filt, flud, join, kick, link, load, mode, msg, msgm, need, nick, nkch, notc, note, part, pub, pubm, raw, rejn, sign, splt, time, topc, unld, wall
while executing
"bind v|v !permident pub_lol_permident "
(file "ciumegu.tcl" line 4940)
invoked from within
"source ciumegu.tcl"
(file "eggdrop.conf" line 1324)
[18:49] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)
Embrace The Inevitable
User avatar
GodOfSuicide
Master
Posts: 463
Joined: Mon Jun 17, 2002 8:00 pm
Location: Austria

Post by GodOfSuicide »

bind pub v|v !permident pub_lol_permident
what about that ?
User avatar
duofruo
Halfop
Posts: 94
Joined: Thu Oct 23, 2003 3:17 pm
Location: Ploiesti@.ro
Contact:

Post by duofruo »

lol. so stupid.
Embrace The Inevitable
User avatar
duofruo
Halfop
Posts: 94
Joined: Thu Oct 23, 2003 3:17 pm
Location: Ploiesti@.ro
Contact:

Post by duofruo »

i edit that but stil no work. any sugestion ?>
Embrace The Inevitable
User avatar
caesar
Mint Rubber
Posts: 3776
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

What error have you got this time?
Once the game is over, the king and the pawn go back in the same box.
User avatar
duofruo
Halfop
Posts: 94
Joined: Thu Oct 23, 2003 3:17 pm
Location: Ploiesti@.ro
Contact:

Post by duofruo »

something such NO USER
Embrace The Inevitable
Locked