News : The level of daily SPAM has reached insane proportions, all registrations are now manual. I ask you to send me an e-mail (john (at) murga (dot) org), to confirm that you want me to create an account for you.


Post Reply  Post Thread 
IRC Program
Author Message
JohnMurga
Administrator
*******


Posts: 381
Group: Administrators
Joined: Apr 2007
Status: Offline
Reputation: 2
Post: #1
RE: Very sadly,help me ,my lord

Hi,

Sorry ... I have been a little busy, anyway, if you run the program from the command line you'll see the following error after a few minutes :

Code:
irctest.lua:41: attempt to index local 'str' (a nil value)
stack traceback:
        irctest.lua:41: in function 'split'
        irctest.lua:128: in main chunk


My quick and dirty fix is to check for a null sting ...

Code:
split=function(str, pat)
if (str==nil) then return {"", ""} end


And now it works for hours and hours :-)

Cheers
JohnM

09-19-2008 08:16 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Messages In This Thread
IRC Program - jyf1987 - 09-18-2008, 12:04 AM
RE: Very sadly,help me ,my lord - jyf1987 - 09-18-2008, 02:25 PM
RE: Very sadly,help me ,my lord - JohnMurga - 09-19-2008 08:16 AM
RE: IRC Program - jyf1987 - 09-28-2008, 06:59 PM
RE: IRC Program - mikshaw - 09-29-2008, 12:05 AM
RE: IRC Program - jyf1987 - 09-30-2008, 01:21 AM
RE: IRC Program - mikshaw - 09-30-2008, 09:36 AM
RE: IRC Program - jyf1987 - 09-30-2008, 09:20 PM
RE: IRC Program - mikshaw - 09-30-2008, 10:50 PM
RE: IRC Program - jyf1987 - 10-01-2008, 06:53 AM
RE: IRC Program - JohnMurga - 10-01-2008, 11:05 PM
RE: IRC Program - jyf1987 - 10-03-2008, 07:33 PM

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: