degesch: fix struct channel_user
A user can have multiple channel modes.
This commit is contained in:
parent
5502975505
commit
392c2e7a5f
|
@ -184,7 +184,7 @@ struct channel_user
|
||||||
LIST_HEADER (struct channel_user)
|
LIST_HEADER (struct channel_user)
|
||||||
|
|
||||||
struct user *user; ///< Reference to user
|
struct user *user; ///< Reference to user
|
||||||
char mode_char; ///< Op/voice/... character, or zero
|
char *modes; ///< Op/voice/... characters
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct channel_user *
|
static struct channel_user *
|
||||||
|
@ -199,6 +199,7 @@ channel_user_destroy (void *p)
|
||||||
{
|
{
|
||||||
struct channel_user *self = p;
|
struct channel_user *self = p;
|
||||||
user_unref (self->user);
|
user_unref (self->user);
|
||||||
|
free (self->modes);
|
||||||
free (self);
|
free (self);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue