bugWeeChat - Bugs: bug #36756, Usermode arguments misinterpreted...


bug #36756: Usermode arguments misinterpreted as usermodes

Submitter:  grawity <grawity>
Submitted:  Sat 30 Jun 2012 04:12:50 PM UTC
Category:  irc plugin Severity:  3 - Normal
Item Group:  irc protocol Status:  Fixed
Privacy:  Public Assigned to:  flashcode
Originator Name:  Open/Closed:  Closed
Release:  * 0.3.8 IRC nick:  grawity
* Mandatory Fields

Add a New Comment Rich Markup

Sun 01 Jul 2012 09:59:07 AM UTC, comment #1: 

The solution I implemented is to ignore everything after first space in user modes (so it's not specific to flag "+s").
I'm not sure if some servers are sending modes with this format for example: "+i +w", in which case the fix will ignore the "+w".
I think all servers are sending "+iw", which is working fine.
Please let me know if the fix is causing troubles with some servers.

Sebastien Helleu <flashcode>
Group administrator
Sat 30 Jun 2012 04:12:50 PM UTC, original submission:  

The +s usermode, supported by various ircd's, accepts an argument consisting of a mode-like "snomask" (server notice mask), which allows the user to receive various server notices. Under some conditions, InspIRCd servers send this argument back to the user, in this form:

:grawity!grawity@panther.nathan7.eu MODE grawity +s +cCqQ

When WeeChat receives this line, it misinterprets the +cCqQ argument as actual user modes, and displays it in the "input" bar as "grawity(woscCqQ)" instead of the correct "grawity(wos)".

A test server is available at irc://sol.nullroute.eu.org:6669 – use "/oper test test" to obtain the mode.

grawity <grawity>


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

Attach Files:

No files currently attached


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 grawity (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.


    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-09-29 flashcode Open/ClosedOpen Closed
    2012-07-01 flashcode StatusNone Fixed
        Assigned toNone flashcode
        Release3.3-dev 0.3.8

    Back to the top

    Powered by Savane 3.13-b921.
    Corresponding source code