Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#139 mIRC string error )

closed-fixed
nobody
None
5
2006-10-05
2006-10-05
libc
No

mIRCstring.mm
....
// Control-c starts a mIRC color protocol sequence.
// Read as many as 2 digits, optional comma, and as
// many as 2 more digits.

fg = get_mirc_value (&text, stop_at);
bg = -1;

if (fg < 0) // Naked control-c
{
fg = -1;
bg = -1;
}

mIRC doesn't reset bg color on any fg color ) so we need to delete:
bg = -1;
:)

Discussion

  • Steve Green
    Steve Green
    2006-10-05

    Logged In: YES
    user_id=208673

    The reference I used is ambiguous. http://www.mirc.co.uk/help/color.txt

    It says "A background color (M) is not always included. If no background
    color is set the recieving client uses his default background color (white)."

    That doesn't really address your point though. You're saying that once the
    background is set, it stays set until it's changed or until the next line, right?

    Do you use mirc too? How sure are you that is how mirc works? :)

     
  • libc
    libc
    2006-10-05

    Logged In: YES
    user_id=1589016

    !!!!
    As you see the background color keeps valid till it is changed or till
    the entire color is switched off with a ^C. (!!!!) Of course lines can start
    with colored text from the beginning and a closing ^C is not always given.
    To specify a background color ALSO a foreground color has to be given.
    (So a ^C,8 attribute is NOT valid and thus ignored)
    (from your .txt)

    I don't use mirc )) only xchat ))

    But I checked with one man in IRC ))
    background don't reset until it changed or reset all parameters ))

     
  • Steve Green
    Steve Green
    2006-10-05

    Logged In: YES
    user_id=208673

    Haha.. you're right. It was there the whole time. (And I verified it with mirc)
    Thanks for the fix. ~S

     
  • Steve Green
    Steve Green
    2006-10-05

    • status: open --> closed-fixed