botlending forum  

Go Back   botlending forum > Eggdrop & TCL > Tcl scripting

Tcl scripting Tcl scripting related questions

Reply
 
LinkBack Thread Tools Display Modes
Old 06-11-2004, 10:47   #1 (permalink)
lsn
Member
 
lsn's Avatar
 
Join Date: Jun 2004
Location: In the NeXuS
Posts: 160
Rep Power: 38
lsn will become famous soon enough
Default user setings ...

Code:
 
proc pub:set {hand chan args x mix} {
set what [lindex $args 0]
set info [join [lrange $args 1 end]]
if {![regexp {^(mail|info|url)$} $what] || ($info=="")} {usage $x set;return "........"} {
setuser $hand $what $info;return "$hand $what $info"}}
ce nu e bine ca primesc
Code:
 [09:47:34] <lyncs> [09:47] ERROR >> No such info type: mail
[09:47:34] <lyncs>	 while executing
[09:47:34] <lyncs> "setuser $hand $what $info"
[09:47:34] <lyncs>	 (procedure "pub:set" line 5)
[09:47:34] <lyncs>	 invoked from within
[09:47:34] <lyncs> "$com($comm,proc) $hand $chan $args $x $mix" << ERROR
lsn is offline   Reply With Quote
Old 06-11-2004, 10:54   #2 (permalink)
Administrator

aka aqwzsx
 
Join Date: Jun 2004
Posts: 827
Blog Entries: 126
Rep Power: 3
UniversaliA is on a distinguished road
Default

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).
 
getuser <handle> <entry-type> [extra info]
	Description: an interface to the new generic userfile support. Valid
	 entry types are:
		BOTFL - returns the current bot-specific flags for the user
				 (bot-only)
		BOTADDR - returns a list containing the bot's address, telnet port,
				 and relay port (bot-only)
		HOSTS - returns a list of hosts for the user
		LASTON - returns a list containing the unixtime last seen and the
				 last seen place. LASTON #channel returns the time last
				 seen time for the channel or 0 if no info exists.
		INFO	- returns the user's global info line
		XTRA	- returns the user's XTRA info
		COMMENT - returns the master-visible only comment for the user
		EMAIL - returns the user's e-mail address
		URL	 - returns the user's url
		HANDLE - returns the user's handle as it is saved in the userfile
		PASS	- returns the user's encrypted password
	Returns: info specific to each entry-type
	Module: core
Respectiv la setuser numai aceste optiuni sunt valide, restul setezi in XTRA. In cazul tau mail url. Pentru info poti folosi "setuser hand info text".
UniversaliA is offline   Reply With Quote
Old 06-11-2004, 11:04   #3 (permalink)
lsn
Member
 
lsn's Avatar
 
Join Date: Jun 2004
Location: In the NeXuS
Posts: 160
Rep Power: 38
lsn will become famous soon enough
Default

bun si atunci folosesc
Code:
 getuser $hand XTRA $what $info
sau
Code:
 setuser $hand XTRA $what $info
?????
lsn is offline   Reply With Quote
Old 06-11-2004, 11:08   #4 (permalink)
Administrator

aka aqwzsx
 
Join Date: Jun 2004
Posts: 827
Blog Entries: 126
Rep Power: 3
UniversaliA is on a distinguished road
Default

Pnetru a seta url, mail, etc - folosesti setuser. Pentru a a lua valorile la aceste setari - folosesti getuser.
UniversaliA is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
+l user flag DarkEngel Tcl scripting 1 16-01-2005 18:29


All times are GMT +3. The time now is 07:19.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.