| View previous topic :: View next topic |
| Author |
Message |
Spiritbob Voice
Joined: 22 Feb 2018 Posts: 1
|
Posted: Thu Feb 22, 2018 3:46 pm Post subject: Delete full XTRA field? |
|
|
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 |
|
 |
willyw Revered One
Joined: 15 Jan 2009 Posts: 1175
|
Posted: Thu Feb 22, 2018 6:05 pm Post subject: Re: Delete full XTRA field? |
|
|
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 |
|
 |
willyw Revered One
Joined: 15 Jan 2009 Posts: 1175
|
Posted: Thu Feb 22, 2018 6:13 pm Post subject: Re: Delete full XTRA field? |
|
|
| 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 |
|
 |
|