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

 
 

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

Submitted by:  voidzero <voidzero>
Submitted on:  Sat 06 Nov 2010 09:31:18 PM UTC  
 
Category: irc pluginSeverity: 3 - Normal
Item Group: otherStatus: Fixed
Privacy: PublicAssigned to: Sebastien Helleu <flashcode>
Originator Name: Open/Closed: Closed
Release: 0.3.3IRC nick: voidzero

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

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>
Project AdministratorIn charge of this item.
Tue 09 Nov 2010 10:35:59 PM UTC, comment #1:

Extra:

http://www.mirc.net/raws/#008

http://www.unrealircd.com/files/docs/unreal32docs.html#feature_snomasks

http://wiki.inspircd.org/SNOMASK
http://wiki.inspircd.org/2.0/SNOMASK

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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by flashcode (Updated the item)
  • -unavailable- added by voidzero (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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 20 Jan 2013 09:24:47 AM UTCflashcodeOpen/ClosedOpen=>Closed
    Thu 10 Jan 2013 02:13:24 PM UTCflashcodeStatusNone=>Fixed
      Assigned toNone=>flashcode
    Wed 17 Nov 2010 01:08:33 PM UTCflashcodeRelease0.4.4-dev=>0.3.3

    Back to the top


    Powered by Savane 3.1-cleanup