0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 18:22:50 +01:00

SJOIN: Fix crash when both mode parameter and UID list are missing.

Closes #63
This commit is contained in:
Jilles Tjoelker 2014-08-15 17:10:24 +02:00
parent dfbf41a0ab
commit b733b9faf4

View file

@ -540,6 +540,9 @@ ms_sjoin(struct Client *client_p, struct Client *source_p, int parc, const char
static char empty[] = "";
rb_dlink_node *ptr, *next_ptr;
if(parc < 5)
return 0;
if(!IsChannelName(parv[2]) || !check_channel_name(parv[2]))
return 0;