tofro wrote:badaman wrote:I have tested the program in QPC with Black Phoenix 15 and found an error on lines 840 and 1450 in which, apparently, "count" appears as a reserved word. Simply change the "count" variable to, for example, "ccount", and it worked without problems. Now I just need human interaction in the chat.

The chat found out yesterday night that
COUNT is a reserved keyword from the DBAS database toolkit which results in a name clash when loaded.
Tobias
The variable is reset to zero in those two lines and appears to be otherwise unused, so could be removed or renamed to avoid the DBAS clash.
I've been looking at the QLirc program and am busy commenting it, with the intention of adding a few faciities to it.
In case anyone is not familiar with the term "IRC" it stands for Internet Relay Chat. IRC allows a group of people to chat by text online together. It can also allow a degree of private chat and file sharing too. You can read about it at
https://en.wikipedia.org/wiki/Internet_Relay_Chat. Software on a server somewhere joins it all together and individuals view the messages and type their own messages on a small piece of software (such as QLirc) on their own computer.
QLirc is very well written (don't get big-headed Tim

), structured and easy to follow. In fact, the way Tim has written it makes it easy to add new features.
On Friday night's Online Chat, I decided to appear in "split personality" mode, one presence via the Mibbit/Kiwi IRC client in my Windows browser as I usually do, and the other from QLirc running in SBASIC on QPC2. Both from the same PC. it worked well apart from a few minor issues found - Tim was online with us and making notes every time I "broke" it. Nothing that you don't see in first releases of new software.
The current version has an issue with length of line entered in the user input window at the bottom - type a line longer than the window and the cursor goes out of range. SHIFT SPACE (and other >127 character codes) appears as unknown characters in the chat, so some degree of character translation (Unicode?) may be needed if it is to handle, say, accented characters. You can send smileys and a few /commands to the chat and they get handled at the server end so could do with a little bit of documentation even if the QLirc does not "handle" them as such, maybe a simple menu or keyboard shortcuts to smileys, maybe a help screen of /commands for IRC.
It's delightfully easy to use, so I wouldn't want to add to too much to make it over-complicated.
Do bear in mind that as Tim said, it's dedicated to the QLForum, and not a more general purpose IRC client as it stands. Also, if making changes, bear in mind that every so often the servers will send a "PING" command out to QLirc to verify that it is still there and if no "PONG" response is given by QLirc in a given time, the online chat will throw you off, so if adding to the software, please do bear this in mind.
I've been very impressed with the fact that QLirc is written in BASIC, and only about 200 lines of BASIC at that! Wish all my "first releases" of QL software worked this well.
Tim writes his programs using his own Structured SuperBasic (SSB) system available from
http://www.dilwyn.me.uk/program/index.html and QLirc is supplied both as a normal SuperBASIC program and as _ssb files. If we make changes to QLirc, it would be nice if we could make the changes available in both formats.
If anyone has ideas for changes and additions to the program, maybe share them here, or send them to Tim and I so that we can try to co-ordinate things. It's so nice to have a real internet application working from a QL emulator. Hope it spurs others on to develop such software.