diff options
Diffstat (limited to 'src/common/proto-irc.c')
-rw-r--r-- | src/common/proto-irc.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/common/proto-irc.c b/src/common/proto-irc.c index 8f31d5c1..fa5446c4 100644 --- a/src/common/proto-irc.c +++ b/src/common/proto-irc.c @@ -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)) |