| View previous topic :: View next topic |
| Author |
Message |
edu Voice
Joined: 29 Oct 2006 Posts: 31
|
Posted: Sat Apr 21, 2007 11:15 am Post subject: .addhost / .delhost |
|
|
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 |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Sat Apr 21, 2007 11:43 pm Post subject: |
|
|
~./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 |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Sun Apr 22, 2007 7:28 am Post subject: |
|
|
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 |
|
 |
edu Voice
Joined: 29 Oct 2006 Posts: 31
|
Posted: Sun Apr 22, 2007 10:00 am Post subject: |
|
|
| 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
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 |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Sun Apr 22, 2007 12:15 pm Post subject: |
|
|
DCC commands to add/del hosts from a handle? Try '.help +host' and '.help -host'  _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
|