[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Weechat-dev] [bug #31572] irc_server infolist stores invalid nick_modes

From: voidzero
Subject: [Weechat-dev] [bug #31572] irc_server infolist stores invalid nick_modes with inspircd ircops
Date: Sat, 06 Nov 2010 21:31:18 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20101027 Firefox/3.6.12


                 Summary: irc_server infolist stores invalid nick_modes with
inspircd ircops
                 Project: WeeChat
            Submitted by: voidzero
            Submitted on: Sat Nov  6 21:31:18 2010
                Category: irc plugin
                Severity: 3 - Normal
              Item Group: other
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
                IRC nick: voidzero



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

/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

When an ircop does /oper he gets more usermodes and this snomask is first
/oper ircop password
--> | :server MODE ircop :+o
--> | :server 381 ircop :You are now an IRCop
--> | :address@hidden 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?


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]