Add account to Join event
Also reorganizes some logic. The account will usually be NULL unless extended-join capability enabled. Closes #934
This commit is contained in:
@ -1042,8 +1042,12 @@ process_named_msg (session *sess, char *type, char *word[], char *word_eol[],
|
||||
{
|
||||
char *chan = word[3];
|
||||
char *account = word[4];
|
||||
char *realname = word_eol[5] + 1;
|
||||
char *realname = word_eol[5];
|
||||
|
||||
if (account && strcmp (account, "*") == 0)
|
||||
account = NULL;
|
||||
if (realname && *realname == ':')
|
||||
realname++;
|
||||
if (*chan == ':')
|
||||
chan++;
|
||||
if (!serv->p_cmp (nick, serv->nick))
|
||||
|
Reference in New Issue
Block a user