Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/mod/irc.mod/mode.c
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,7 @@ static void got_op(struct chanset_t *chan, char *nick, char *from,
check_chan = 1;

strcpy(ch, chan->name);
simple_sprintf(s, "%s!%s", m->nick, m->userhost);
u = get_user_from_member(m);

get_user_flagrec(u, &victim, chan->dname);
Expand Down Expand Up @@ -515,6 +516,7 @@ static void got_halfop(struct chanset_t *chan, char *nick, char *from,
check_chan = 1;

strcpy(ch, chan->name);
simple_sprintf(s, "%s!%s", m->nick, m->userhost);
u = get_user_from_member(m);

get_user_flagrec(u, &victim, chan->dname);
Expand Down Expand Up @@ -680,7 +682,7 @@ static void got_dehalfop(struct chanset_t *chan, char *nick, char *from,
{
memberlist *m;
char ch[sizeof chan->name];
char s[UHOSTLEN], s1[UHOSTLEN];
char s[UHOSTLEN];
struct userrec *u;
int had_halfop;

Expand All @@ -695,7 +697,7 @@ static void got_dehalfop(struct chanset_t *chan, char *nick, char *from,
}

strcpy(ch, chan->name);
simple_sprintf(s1, "%s!%s", nick, from);
simple_sprintf(s, "%s!%s", m->nick, m->userhost);
u = get_user_from_member(m);
get_user_flagrec(u, &victim, chan->dname);

Expand Down
Loading