| View previous topic :: View next topic |
| Author |
Message |
willyw Revered One
Joined: 15 Jan 2009 Posts: 1175
|
Posted: Thu Feb 17, 2011 2:02 pm Post subject: |
|
|
| Gewan wrote: | The script has served me and friends with perfection for the last months.
|
Great!
| Quote: |
Now, it seems I have found the very first bug. Check this out:
...
<@Gewan> !i iCC0\xD^DASS
<@Eggdrop> "No such server"[/i]
Of course, iCC0\tM^DASS is indeed in the channel. My spontaneous guess tells me that the backslash is what's messing the script's parse. What do you guys think? Suggestions? Anyone care to join for a simple fix?
Ty in advance~
Regards~ |
I don't know about that. I tested with a nick that included the backslash, and it worked fine.
However, I found what I believe to be part of the problem. It is mistakes by me, that the use of that nick brought to light.
Find this line:
| Code: |
putserv "whois [join [string trimright [split $text 0]]] [join [string trimright [split $text 0]]]"
|
and let's try to fix it again.
replace with:
| Code: |
putserv "whois [string trimright [lindex [split $text] 0 ]] [string trimright [lindex [split $text] 0 ]]"
|
With some quick testing here, it works:
<@mynick> !idle iCC0\xD^DASS
<@botnick> iCC0\xD^DASS has been idle 35 minutes 9 seconds [signon Thu Feb 17 12:25:59 2011]
Let us know if that helps. I hope so.  |
|
| Back to top |
|
 |
caesar Mint Rubber

Joined: 14 Oct 2001 Posts: 3741 Location: Mint Factory
|
Posted: Thu Feb 17, 2011 2:12 pm Post subject: |
|
|
why not:
| Code: |
set user [string trimright [lindex [split $text] 0 ]]
putserv "whois $user $user"
|
_________________ Once the game is over, the king and the pawn go back in the same box. |
|
| Back to top |
|
 |
|
|
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
|
|