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 

!idle alike script which is probably easy.
Goto page Previous  1, 2
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1175

PostPosted: Thu Feb 17, 2011 2:02 pm    Post subject: Reply with quote

Gewan wrote:
The script has served me and friends with perfection for the last months.


Great! Smile

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? Wink

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. Smile
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. Smile
Back to top
View user's profile Send private message
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3741
Location: Mint Factory

PostPosted: Thu Feb 17, 2011 2:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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