Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
atheme
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
darchoods
atheme
Commits
aa110920
Commit
aa110920
authored
10 years ago
by
William Pitcock
Browse files
Options
Downloads
Patches
Plain Diff
nickserv/enforce: do not check if a non-existent user is banned from a channel
parent
ab281b1f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/nickserv/enforce.c
+2
-2
2 additions, 2 deletions
modules/nickserv/enforce.c
with
2 additions
and
2 deletions
modules/nickserv/enforce.c
+
2
−
2
View file @
aa110920
...
...
@@ -309,8 +309,8 @@ static void ns_cmd_regain(sourceinfo_t *si, int parc, char *parv[])
}
if
((
si
->
smu
==
mn
->
owner
)
||
verify_password
(
mn
->
owner
,
password
))
{
if
(
user_is_channel_banned
(
si
->
su
,
'b'
)
||
user_is_channel_banned
(
si
->
su
,
'q'
)
||
user_is_channel_banned
(
u
,
'b'
)
||
user_is_channel_banned
(
u
,
'q'
))
if
(
(
si
->
su
!=
NULL
&&
user_is_channel_banned
(
si
->
su
,
'b'
)
||
user_is_channel_banned
(
si
->
su
,
'q'
)
)
||
user_is_channel_banned
(
u
,
'b'
)
||
user_is_channel_banned
(
u
,
'q'
))
)
{
command_fail
(
si
,
fault_noprivs
,
_
(
"You can not regain your nickname while banned or quieted on a channel."
));
return
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment