bugWeeChat - Bugs: bug #41640, [PATCH] irc_message_parse requires...


bug #41640: [PATCH] irc_message_parse requires '!' in prefix

Submitted by:  Felix Eckhofer <tribut>
Submitted on:  Wed 19 Feb 2014 06:35:51 PM UTC  
Category: irc pluginSeverity: 3 - Normal
Item Group: irc protocolStatus: Fixed
Privacy: PublicAssigned to: Sebastien Helleu <flashcode>
Originator Name: Open/Closed: Closed
Release: 0.4.3IRC nick: vendor

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Thu 20 Feb 2014 07:59:56 AM UTC, comment #1:

Merged with a small change: check that pos is not NULL in the condition, so that it works with malformed messages where there is nothing after nick/host.

Sebastien Helleu <flashcode>
Project AdministratorIn charge of this item.
Wed 19 Feb 2014 06:35:51 PM UTC, original submission:

Both RFC1459 and RFC2812 allow the prefix in an IRC message to only contain nick and host, such as ":nick@host PRIVMSG #weechat :foo". irc_message_parse will in this case use "nick@host" as nick instead of just "nick".

Reference (from RFC2812):

See the attached patch for my proposed fix. Alternatively, feel free to merge the parse-privmsg branch from my repository at https://github.com/tribut/weechat.git


Felix Eckhofer <tribut>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

Attached Files


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by flashcode (Posted a comment)
  • -email is unavailable- added by tribut (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 15 Aug 2014 09:35:34 AM UTCflashcodeOpen/ClosedOpen=>Closed
    Thu 20 Feb 2014 07:59:56 AM UTCflashcodeStatusNone=>Fixed
      Assigned toNone=>flashcode
    Wed 19 Feb 2014 06:35:51 PM UTCtributAttached File-=>Added 0001-irc-make-optional-in-message-prefix.patch, #30608

    Back to the top

    Powered by Savane 3.1-cleanup1