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 

Delete full XTRA field?

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
Spiritbob
Voice


Joined: 22 Feb 2018
Posts: 1

PostPosted: Thu Feb 22, 2018 3:46 pm    Post subject: Delete full XTRA field? Reply with quote

Okay, so if I've set the following xtra field
Code:
setuser <nick> xtra Variable1 "Variable2 Variable3"

How do I delete that whole field?
I've tried using
Code:
setuser <nick> xtra Variable1 ""

or
Code:
setuser <nick> xtra Variable1 " "
But it doesn't work...


And I have no idea why the bot adds a different hostmask using .adduser and when you use the tcl command -> adduser (The tcl scripts capture the hostmask more descriptively than the actual bot itself)
Back to top
View user's profile Send private message
willyw
Owner


Joined: 15 Jan 2009
Posts: 960

PostPosted: Thu Feb 22, 2018 6:05 pm    Post subject: Re: Delete full XTRA field? Reply with quote

This:
.tcl setuser <handle> xtra Variable1 "Variable2 Variable3"
in the partyline, did set it. I tried it on a bot.

Then:
.tcl getuser <handle> xtra
would display it.

Next:
.tcl setuser <handle> xtra Variable1
is what I tried to see what happens.

Followed by:
.tcl getuser <handle> xtra
again, and it seems to have erased it, leaving on the "created" data.


It looks like the only think that I did different than you, was that I did not use " "

I hope this helps.
_________________
For a fun (and popular) Trivia game, visit us at: irc.librairc.net #science-fiction . Over 300K Q & A to play in BogusTrivia !
Back to top
View user's profile Send private message
willyw
Owner


Joined: 15 Jan 2009
Posts: 960

PostPosted: Thu Feb 22, 2018 6:13 pm    Post subject: Re: Delete full XTRA field? Reply with quote

Spiritbob wrote:

...
And I have no idea why the bot adds a different hostmask using .adduser and when you use the tcl command -> adduser (The tcl scripts capture the hostmask more descriptively than the actual bot itself)



The tcl adduser command that you tried is in some script?

If so, I wonder if you have a proc with the same name as the command?

Because, (have a look here.. find the adduser command)
http://docs.eggheads.org/mainDocs/tcl-commands.html
apparently the tcl adduser command must be given the hostmask... it doesn't go get it by itself, like the partyline .adduser command does.

So I wonder if you have some proc that is overriding the tcl command?
If so... you'd have to examine that proc, to see what all it is doing.

Just for fun, try a partyline command line. Here's an example of what I did:
<mynick> .tcl info body adduser
<botnick> Tcl error: "adduser" isn't a procedure

whereas if I'd given it a proc name, it would have displayed the lines of code within the proc.
_________________
For a fun (and popular) Trivia game, visit us at: irc.librairc.net #science-fiction . Over 300K Q & A to play in BogusTrivia !
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help 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