View Issue Details

IDProjectCategoryView StatusLast Update
0005130unrealircdpublic2018-09-13 20:10
Reportercapitaine Assigned Tosyzop  
Status resolvedResolutionfixed 
Fixed in Version4.2.0 
Summary0005130: Permissions issues
DescriptionWe have bots with minimal ircop privileges, but they loose their o-line when setting modes on themselves.
Also when they /oper, they gets numerics 381 and 481 at the same time.
Steps To Reproduce
oper bb :qwe123
:test MODE test :+ostqW 008 test :Server notice mask (+kcfFjveGnNqSso) 381 test :You are now an IRC Operator 481 test :Permission Denied- You do not have the correct IRC operator privileges NOTICE test :from OperServ: USERS: test!test@localhost is now an IRC operator.

mode :test 221 test +owsxqpW 008 test :Server notice mask (+kcfFjveGnNqSso)

mode test :+B NOTICE test :- Bot Message of the Day - NOTICE test :- ! NOTICE test :End of /BOTMOTD command.
:test MODE test :-oqW+B 008 test :Server notice mask (+k)

same with other ones like +i, +H
Additional InformationThe configuration is the following :

operclass bobot

oper bb
    password "qwe123";
    class clients;
    operclass bobot;
    maxlogins 1;

    oper allow;
TagsNo tags attached.
3rd party modules



2018-09-09 16:43

administrator   ~0020300

I don't get the (confusing) 481 numeric on OPER but I can reproduce the problem with MODE nick +B. Culprit is this code:

/* Don't let non-ircops set ircop-only modes or snomasks */
if (!ValidatePermissionsForPath("self:restrictedumodes",sptr,NULL,NULL,NULL))
        remove_oper_privileges(sptr, 0);

The idea of the code is good, but... yeah... I'll see what I can do :D


2018-09-09 17:03

administrator   ~0020301

Fixed in git. Fix will be in 4.0.19-rc2 / 4.0.19 final:

commit 681640024ad76c918e1177b10b7afab897da8997 (HEAD -> unreal40, origin/unreal40, origin/HEAD)
Author: Bram Matthys <>
Date: Sun Sep 9 17:01:35 2018 +0200

    Fix permission issues with minimal IRCOps.
    Reported by capitaine in


That leaves your strange 481 numeric error. Not sure where that is coming from.
Do you perhaps have additional settings that apply to all IRCOps that could cause this?


2018-09-09 17:04

administrator   ~0020302

Oh and by the way, the fix I added was to make it so ircops without self:restrictedumodes (such as a restricted oper you created), to make it that those opers cannot add oper-only modes to themselves, they may only remove. The same applies to snomasks.


2018-09-13 20:10

administrator   ~0020324

Issue resolved. Feel free to elaborate / report / show debug info on the 481 message you were getting, I could not reproduce.

Issue History

Date Modified Username Field Change
2018-08-06 14:00 capitaine New Issue
2018-09-03 08:52 syzop Status new => acknowledged
2018-09-09 16:41 syzop Assigned To => syzop
2018-09-09 16:41 syzop Status acknowledged => assigned
2018-09-09 16:43 syzop Note Added: 0020300
2018-09-09 17:03 syzop Note Added: 0020301
2018-09-09 17:03 syzop Status assigned => feedback
2018-09-09 17:04 syzop Note Added: 0020302
2018-09-13 20:10 syzop Status feedback => resolved
2018-09-13 20:10 syzop Resolution open => fixed
2018-09-13 20:10 syzop Fixed in Version => 4.2.0
2018-09-13 20:10 syzop Note Added: 0020324