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 

.addhost / .delhost

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
edu
Voice


Joined: 29 Oct 2006
Posts: 31

PostPosted: Sat Apr 21, 2007 11:15 am    Post subject: .addhost / .delhost Reply with quote

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:

.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
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Sat Apr 21, 2007 11:43 pm    Post subject: Reply with quote

~./doc/tcl-commands.doc
Code:
  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
Back to top
View user's profile Send private message Visit poster's website
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sun Apr 22, 2007 7:28 am    Post subject: Reply with quote

There already exist command scripts that will do exactly what you requested and more. Check the Tcl archive.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
edu
Voice


Joined: 29 Oct 2006
Posts: 31

PostPosted: Sun Apr 22, 2007 10:00 am    Post subject: Reply with quote

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 Rolling Eyes

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
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sun Apr 22, 2007 12:15 pm    Post subject: Reply with quote

DCC commands to add/del hosts from a handle? Try '.help +host' and '.help -host' Idea
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests 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