@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6



Comments:

<0> but that gets word of any lenght
<1> And have an if statement checking the $Len of the word
<2> how do I check a if a text has a match to $3 , find it, then append to that match if there is one, or write a new one if it doesn't? (thank you)
<1> Diddy, well an if statemend would tell you. >> if (!$3) { } this means if there isn't one
<1> If ($3) { echo -a $ifmatch } | else { echo -a nop doesn't exist }
<1> That's like, if $3 exists then echo it, else, echo nop it doesn't exist
<2> I'd have to use $read right?
<2> I havent scripted in 7-8 years :(
<2> basicly, this is to a text. if ($exists($read(tracker.txt,-ar, * $+ $3 $+ * ))) { write -ar# $3 tracker.txt 1st %tracker.ininumber }
<2> else { write -a tracker.txt $3 1st %tracker.ininumber }
<2> that writes to the text, but it's not appending
<2> it just writes a new line
<1> But you would like to replace it right?
<2> no, I want to append to it, and if it does not exist, write a new line
<2> not sure hoe -r# works, and can't find it's usage on the internet
<1> /help /write



<2> I did that, but It doesn't compute in my head, and it's not working the way I want it to
<2> The help file does not show a specific usage of -r#
<1> The -r# switch implies a regex match.
<1> And doesn't # means number
<2> right, but it doesn't show how to match a $3
<2> is # a number?
<2> I thought it was regex?
<2> thats why I'm confused
<1> Uhm, as the helpfile has used it I would doubt
<1> I haven't used it before so I can't know but I would be # stands for a number
<1> Maybe that # stands for the number of the match
<2> whatever, it's "almost working right, but it's not apending
<1> Can you please define apending?
<2> I want it to search the file for a previous entry of that value. IF it exists, keep the old information, and add the new
<2> if it's NOT there previously, I want it to enter another line with the new
<1> On the same line?
<2> yes, on the same line
<1> Uhm $exists is for a file?
<1> Because if its for something in that file I doubt it's gonna work
<2> or even an ini file and appending under that entry would work, but ini files are limited to lines, right?
<1> /help $exists
<1> Don't know. I don't use ini files
<2> the file DOES exist. It's the entry value of $3 that I'm searching
<1> Heh
<1> Let me try and do something for you
<2> :)
<1> Now I have to read the help file :p
<1> So give me some minutes
<2> sure, I've beat myself to death reading the helpfile, and whatever I'm reading, just hasn't sunk in. It works, but not exactly what I'm looking for, so I'm just trying to tweak it
<1> alias add {
<1> if ($read(file.txt,w, $+(*,$3,*)) {
<1> ;check if it matches
<1> var %line = $readn
<1> ;this will tell you on what line it was matched
<1> write file.txt $+(-l,%readn) $3
<1> }
<1> else {
<1> write file.txt $3
<1> }
<1> }
<1> Oh oh wrong actually
<3> heh. try again
<1> Write file.txt $+(-il,%readn) $3
<1> I think now :p
<1> Mr sat is back :P enlight me :) how am I doing lol
<3> well should that overwrite the found line?
<3> in that case you don't want the -i
<1> So I was correct :p
<3> welll
<1> The -i switch indicates that the text should be inserted at the specified line instead of overwriting it. If you do not specify any text then a blank line is inserted. If you do not specify a line number then a blank line is added to the end of the file.
<3> the first /if is missing a )
<1> So -I is needed
<1> And yes you're right on the first one :p
<3> i haven't read the question, i dont know if he wants to overwrite or insert
<1> When I script something I have to go over it like 3 times lol
<1> Sat, insert
<3> are you sure
<3> hmm
<3> yeah "add the new" but on the same line or another?
<1> Same line



<3> then -i won't do
<3> since it will insert another line before the found line
<1> And I found another mistake
<3> not add stuff to the same line
<1> I use the wrong variable in there
<3> why thank you
<3> heh yeah
<1> Write file.txt $+(-l,%readn) $3 change that to write file.txt $+(-l,%line) $3
<4> whats up
<5> dvver
<2> thanks, I'll adapt, then wait until the situation comes up and give it a go. this might take a bit. may I loiter?
<4> ow!
<4> hey!
<4> ;/
<2> Ok I adapted, now i have to wait. I sure appreciate your honest attempt to seriously help. I hope it works. Thanks so much... now to wait...
<6> hello e cineva pe aici
<2> it didn't work
<7> hi!!!!!!!!!!
<8> _Dymka_: Please do not repeat
<2> added a bunch of checking echos, to see where it broke
<4> i'd give my left arm to be ambidextrous
<2> Ok $readn doesn't work because there is no number line
<2> I think an $ifmatch is in order
<6> hello
<9> hellooooooooo
<6> ce sa intamplat
<10> anyone know a like fast way to transfer a list ofs in a .txt file .. to a mirc script.. or a eggdrop? basic idea... /play the file 2000 to self or clones then pull a $2 from the "#BeAcH *!ZilyaNimj@89.33.57.* m00n 1151063664" in text file? would that work?
<10> a list of bans.... in a .txt file
<10> from /mode #chan +b
<11> mg
<11> what a f_ _ _ is this?
<4> its irc
<4> :P
<11> OLE
<12> hi , i have raw 352:*: { if $6 iswm H { .echo -a Who $6 } }
<12> i want know how detect the ircops
<13> verrdugo: raw 313 is for ircop
<12> Dutch but i using /who
<14> hi
<6> ha
<15> hy
<6> ha
<6> :)
<15> :D
<14> hey i cant dcc send with port 8889 but can with 6667.. why? because i know 8889 can dcc resume. im behind router
<12> i use this who 0 o
<16> Hey pres :)
<17> morning LM :)
<18> tung nora
<18> erg
<18> dW
<18> ]SXQW
<18> SRTG
<18> RGH
<18> SRTH
<18> RSH
<18> R
<19> hi
<20> !pig
<20> !ping
<19> hi
<20> hello


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #mirc
or
Go to some related logs:

#linux
#chatzone
oblige noblisse
#MissKitten
goog html javascript change text
mechsex
#c++
#skype
23/m/pakistan
#networking



Home  |  disclaimer  |  contact  |  submit quotes