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.

.addhost / .delhost

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
e
edu
Voice
Posts: 31
Joined: Sun Oct 29, 2006 2:10 pm

.addhost / .delhost

Post by edu »

hi guys

I need you to help me with a lil script here
I had make an .add <handle> <hostname> <access> script, but now I need a add/del hostname, something like:

Code: Select all

.addhost <username> <hostname>
.delhost <username> <hostname>
I need your help, PLEASE!
I can't do it by own, thank you.

edu

PS: Sorry for my bad english
Seek the truth
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

~./doc/tcl-commands.doc

Code: Select all

  setuser <handle> <entry-type> [extra info]
    Description: this is the counterpart of getuser. It lets you set the
      various values. Other then the ones listed below, the entry-types are
      the same as getuser's.
        PASS    - sets a users password (no third arg will clear it)
        HOSTS   - if used with no third arg, all hosts for the user will be
                  be cleared. Otherwise, *1* hostmask is added :P
        LASTON  - This setting has 3 forms. "setuser <handle> LASTON
                  <unixtime> <place>" sets global LASTON time, "setuser
                  <handle> LASTON <unixtime>" sets global LASTON time
                  (leaving the place field empty), and "setuser <handle>
                  LASTON <unixtime> <channel>" sets a users LASTON time for
                  a channel (if it is a  valid channel).
    Returns: nothing
    Module: core

  delhost <handle> <hostmask>
    Description: deletes a hostmask from a user's host list
    Returns: 1 on success; 0 if the hostmask (or user) doesn't exist
    Module: core
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

There already exist command scripts that will do exactly what you requested and more. Check the Tcl archive.
e
edu
Voice
Posts: 31
Joined: Sun Oct 29, 2006 2:10 pm

Post by edu »

Sir_Fz wrote:There already exist command scripts that will do exactly what you requested and more. Check the Tcl archive.
There is *only* one delhost.tcl that works into dcc :roll:

For the .addhost I can find a way to do it, but I can't find a way to do the .delhost, please help me
Seek the truth
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

DCC commands to add/del hosts from a handle? Try '.help +host' and '.help -host' :idea:
Post Reply