1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

*** empty log message ***

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2597 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2002-03-13 02:59:01 +00:00 committed by cras
parent 006876a87c
commit 4770c1c4ee
2 changed files with 6 additions and 1 deletions

View File

@ -11,3 +11,6 @@ SUBDIRS = core $(BOT) dcc flood notifylist $(PROXY)
noinst_LIBRARIES = libirc.a noinst_LIBRARIES = libirc.a
libirc_a_SOURCES = irc.c libirc_a_SOURCES = irc.c
distclean-generic:
rm -f irc.c

View File

@ -322,12 +322,14 @@ static char *irc_parse_prefix(char *line, char **nick, char **address)
{ {
*nick = *address = NULL; *nick = *address = NULL;
/* :<nick> [["!" <user>] "@" <host>] SPACE */
if (*line != ':') if (*line != ':')
return line; return line;
*nick = ++line; *nick = ++line;
while (*line != '\0' && *line != ' ') { while (*line != '\0' && *line != ' ') {
if (*line == '!') { if (*line == '!' || *line == '@') {
*line++ = '\0'; *line++ = '\0';
*address = line; *address = line;
while (*line != '\0' && *line != ' ') while (*line != '\0' && *line != ' ')