| |
| |
| |
|
Page: 1 2 3
Comments:
<0> I'm trying to convert bytes to kb and mb by using return [expr double([expr $size/1048576])]mb <0> that only returns teh whole number value with no decimal placing.. <0> using the double I get 1 decimal place but it's always got a value of 0 <0> how can I get this to show 2 decimal places <1> expr 1234 / 1048576.0 <2> FireEgl: #413 (272 clicks) Tcl: 0.0011768341064453125 <0> so how would you get to round out to only 2 decimal places <3> / <count>.00 <3> If I am right <1> format %.2f 1234.56789 <2> FireEgl: #417 (280 clicks) Tcl: 1234.57 <0> great, thanks alot <3> =D <1> =O <3> =(
<1> =) <3> =( <1> gah <3> :/ <4> Does anybody know of a tcl that will maintain like a notify list, and if the user comes online (or just is online) for more then 5 minutes, but not in a paticular channel, it'll invite them. <4> i.e. it's a +i channel sometimes people get d/c'd and they aren't there to request an invite <4> IS ther eany sort of auto invite tcl? <1> `Spike: I dunno.. search the tcl archive on www.egghelp.org <4> alreaedy did <4> i would have sworn there was one <4> but i can't find it for the life of me <4> i tried invite , +i , and a couple other strings <4> notify doesn't pull anyting useful either <1> Guess you'll hafta write one yourself.. Or uh, pay me to write it. ;) <4> bahhh <4> how much do you want? <4> i'll giva ya $10 <4> It could use the server side notify list <1> 25 cents per line of code is the minimum I've been paid lately. <4> i'm all for rthat <4> i doubt it'd be $10 <4> i think it should actually be really simple, i just don't know tl <4> s/tl/tcl <4> on notify $nick, wait 5 minutes, if nick !ison #some-channel, invite $nick #some-channel <1> server side notify list? Is that ISON, or something else? <4> of that I'm not sure, i just know that there's an option in the ratbox ircd to set the maximum serverside notify list, and it defualts to 99 <4> I've actually never used it myself, I just found out it existed when perusing a config file the other day <1> hrm <1> I'm only familiar with ISON.. it's standard on all IRCDs.. <4> and that just checks to see if a paticulat nick is online right? <1> yah <4> I bet I could find a for loop somewhere that takes every nick with a certain flag <4> But the problem is that eggdrop's not storing their nick names <4> it's storing a handle and a host <4> does ison work with a host? <1> No, I don't think so. <4> naw it can't ... heh <4> hmmmm <4> I guess i'm just going to slop something together in mircscript then <4> that checks a list of nicks every hour or something <4> i dunno <4> Gonna be more difficult then i thought <4> i dun think my eggbot keep track of nicks <1> You can make it store nicks.. <4> how is that? <1> setuser $handle XTRA LASTNICK $nick <1> getuser $handle XTRA LASTNICK <4> oh <4> hmmm <4> If i took that and a for loop that looks through the userlist and takes every user, and checks there last nicks to see if it's online, if it online, invite if it its not on the channel <4> I think i could actually do it myself <1> Does ratbox have channel +I modes? <1> Like.. <1> That makes it so I can join here anytime the channel is +i <5> yes <1> Well why not use that instead? <4> hmmmmm <4> that's true <4> yeah it does <4> but I think it's limited to 30 users
<1> =\ <4> will the bots auto place those? <4> that's not quite the same as an exempt is it? <4> I could probably modify an exempt script if one exists pretty easily though <5> i think its more than that.. <1> You use the .+invite command from the bot to set them. <4> i thin kthe bot just invites in that case <1> +e (exempts) are for avoiding bans.. <4> i don't tink it adds them to the list <4> yeah i know <4> whats up r2 <4> bahhh well i'm going to worry about it later, I figured itd be a simple fix <1> =) <4> i'm just gonna mirc something up that checks a file of nicks every hour or something and if they aren't on the chan, it invites them <6> Why not just add them to a bot and if they are not on the channel they can do > /msg botnick invite me now <6> =p <4> heh <4> That's what we do now <4> but the problem is that they get d/c'd and then their client reconnects, and tries to rejoin but can't <7> thats their problem <7> if theyre too lame to add a line to a perform function on connect then stuff em <7> ;p <6> indeed <5> why dont you use one of the ones on egghelp <6> they just have to msg the bot on connect =p <5> or setup a sqldb <5> alot of ways to skin that cat <8> Welcome to EFnet's biggest #uptime ! the winner will get 2 bg vhosted shell for 1 year! we start from 06.01.06! JOIN #UPTIME #UPTIME #UPTIME <7> eat **** <8> Welcome to EFnet's biggest #uptime ! the winner will get 2 bg vhosted shell for 1 year! we start from 06.01.06! JOIN #UPTIME #UPTIME #UPTIME <7> hehe <1> =) <9> heh <1> =) <10> hey folks, im trying to retrieve an 'age' from a username. The usernames are *normally* in the format 'username_m18' or 'user_name_f21' (where m or f is the ***, and the number is the age). I figure the best way to do it is via regex but i dont know how to go about it. <11> ;set n "user_name_f21"; regexp {(\d+)$} $n -> age; return $age <2> thommey: #670 (895 clicks) Tcl: 21 <11> that takes all digits [\d] (at least one of them [+]) that are at the end [$] <10> ace, works a treat - thanks :) <12> hi, how can i check if $test contains diff characters then abcdefghijklmnop? <13> ;set test abc <2> yoe: #684 (228 clicks) Tcl: abc <14> ; regexp {^[a-p]+$} "abcdefghijklmnop" <2> BL4DE: #685 (35258 clicks) Tcl: 1 <15> BL4DE sup <14> hola <14> where have you been <15> my pc is ****e <15> *****ed <14> aww <15> i found 512MB DDR in my cupboard tho <14> that's why you've been gone i suppose <15> yeah <15> also i got arrested last but one weekend <14> in your cupboard ? nice place to keep it <15> well it was in carbon paper stuff <14> i actually had that in mind <15> yeah had to pay $80 fine <14> wasnt that much <15> nope <14> would only have been like 30$ in '88 <15> i was breaking up a fight <15> and then the police nicked me <15> and the fighters ran off, well one of them <15> one of them got nicked when they argued about me getting arrested <14> that's cops for ya <15> yeah <15> also, i got like 15 exams starting next week from 06/06/06 to 26/06/06 <15> and i havent done nearly enough work for them <15> so i'm trying to stay offline to distract me less <4> that ****s <16> hey have a qeustion
Return to
#eggtcl or Go to some related
logs:
#bsd #beginner #beginner #beginner who is Conoco-Phillips cmkm diamond #computers #gentoo hitTest count #politics astro flatpanels
|
|