This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Info line character limit

Old posts that have not been replied to for several years.
Locked
G
GrimlockX2
Voice
Posts: 2
Joined: Wed Jun 01, 2005 12:53 pm

Info line character limit

Post by GrimlockX2 »

If this is anwered somewhere else than I apologize now, but for the life of me I can't find an answer anywhere. The problem I'm having is that all my info lines are cut off at 81 characters. Which is annoying to say the least. I'm trying to use the internal info lines of the bot before trying to find a script to do it, or write my own. Am I missing a configuration option (one that I can't find in the documentation), or is this a limit of the code/language or something that I can't change? I looked at the source code and it's stored as a variable length string in the user's file so I'm quite stumped as to where this limit may be. It doesn't seem to be an IRC limit or telnet limit, it just doesn't like to store anything longer than an 81 character string as an info line. Oh, I should point out that this is only a problem on channel specific info lines. The global info lines will accept however long of info line as I can come up with. This leads me to believe it's a limitation in the channel record code or storage method.

If in the end I can't change this limit can someone recommend a greet/info script to me. I've tried a few and didn't like them or they weren't what i was after (the ability to set an info line on a per user basis and have them greeted with it on join).
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

If you use the wordwrap proc by user from here you can do something like this:

Code: Select all

foreach infoline [wordwrap $yourline] {
 puthelp "NOTICE $nick :$infoline"
}
the wordwrap proc will split the line with spaces (so no word will be cut) if you don't mention a split char (also if you don't mention a string length, the default is 70)
# Syntax:
wordwrap <line> [length] [SplitChar]
G
GrimlockX2
Voice
Posts: 2
Joined: Wed Jun 01, 2005 12:53 pm

Post by GrimlockX2 »

With some help from the guys in the official Eggdrop chat I managed to find and alter the source code and recompile the bot. It seems to work just fine now. Odd that it was limited in such a way.
Locked