bugWeeChat - Bugs: bug #31572, irc_server infolist stores invalid...

 
 

bug #31572: irc_server infolist stores invalid nick_modes with inspircd ircops

Submitter:  voidzero <voidzero>
Submitted:  Sat 06 Nov 2010 09:31:18 PM UTC
   
 
Category:  irc plugin Severity:  3 - Normal
Item Group:  other Status:  Fixed
Privacy:  Public Assigned to:  flashcode
Originator Name:  Open/Closed:  Closed
Release:  * 0.3.3 IRC nick:  voidzero
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 10 Jan 2013 02:13:24 PM UTC, comment #2: 

This should OK after fix of bug #36756 (fixed 6 months ago).

Sebastien Helleu <flashcode>
Group administrator
Tue 09 Nov 2010 10:35:59 PM UTC, comment #1: 
voidzero <voidzero>
Sat 06 Nov 2010 09:31:18 PM UTC, original submission:  

inspircd has two kinds of usermodes: normal usermodes and, for ircops, snomasks.

Example:
/mode ircop +w
This, as we know, allows ircop to receive wallops.

The snomask works a bit differently:
/mode ircop +s +AaNn-Cc
This sets a snomask, adding the modes A, a, N and N and removing the modes Cc.

When an ircop does /oper he gets more usermodes and this snomask is first set:
/oper ircop password
--> | :server MODE ircop :+o
--> | :server 381 ircop :You are now an IRCop
--> | :ircop!ircop@somehost MODE ircop -i+ISWhows +aAkKlLoOxfjJgG

Let's view usermodes
<-- | MODE ircop
--> | :server 221 ircop :+ISWhorsw
--> | :server 008 ircop +AGJKLNOafgjklnotx :Server notice mask
So our usermode is: +ISWhorsw +AGJKLNOafgjklnotx

What does the irc_server infolist think our usermode is?
nick_modes....................: str 'xrosaAkKlLOfjJgGhwISWnNt'

What should it be?
nick_modes....................: str 'ISWhorsw'
and an additional nick_snomask
nick_snomask..................: str 'AGJKLNOafgjklnotx'

I realise that this might raise problems. How would you know when mode +s is a snomask and when it is simply a usermode without the extra flags?

voidzero <voidzero>

 

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

Attach Files:
   
   
Comment:
   

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 (Updated the item)
  • -email is unavailable- added by voidzero (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
    2013-01-20 flashcode Open/ClosedOpen Closed
    2013-01-10 flashcode StatusNone Fixed
        Assigned toNone flashcode
    2010-11-17 flashcode Release3.3-dev 0.3.3

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code