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
ab3d76d0
Commit
ab3d76d0
authored
15 years ago
by
Jilles Tjoelker
Browse files
Options
Downloads
Patches
Plain Diff
Fix crash with /os clearchan kick and kill.
The code had been wrong for a while, but 53ee43c7126f makes it crash.
parent
c8e4c65c
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/operserv/clearchan.c
+2
-2
2 additions, 2 deletions
modules/operserv/clearchan.c
with
2 additions
and
2 deletions
modules/operserv/clearchan.c
+
2
−
2
View file @
ab3d76d0
...
...
@@ -45,7 +45,7 @@ void _moddeinit(void)
static
void
os_cmd_clearchan
(
sourceinfo_t
*
si
,
int
parc
,
char
*
parv
[])
{
chanuser_t
*
cu
=
NULL
;
node_t
*
n
=
NULL
;
node_t
*
n
,
*
tn
;
channel_t
*
c
=
NULL
;
int
action
;
char
*
actionstr
=
parv
[
0
];
...
...
@@ -101,7 +101,7 @@ static void os_cmd_clearchan(sourceinfo_t *si, int parc, char *parv[])
command_success_nodata
(
si
,
_
(
"Clearing
\2
%s
\2
with
\2
%s
\2
"
),
targchan
,
actionstr
);
/* iterate over the users in channel */
LIST_FOREACH
(
n
,
c
->
members
.
head
)
LIST_FOREACH
_SAFE
(
n
,
t
n
,
c
->
members
.
head
)
{
cu
=
n
->
data
;
...
...
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