mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 20:33:46 +02: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:
parent
006876a87c
commit
4770c1c4ee
2 changed files with 6 additions and 1 deletions
|
|
@ -11,3 +11,6 @@ SUBDIRS = core $(BOT) dcc flood notifylist $(PROXY)
|
|||
noinst_LIBRARIES = libirc.a
|
||||
|
||||
libirc_a_SOURCES = irc.c
|
||||
|
||||
distclean-generic:
|
||||
rm -f irc.c
|
||||
|
|
|
|||
|
|
@ -322,12 +322,14 @@ static char *irc_parse_prefix(char *line, char **nick, char **address)
|
|||
{
|
||||
*nick = *address = NULL;
|
||||
|
||||
/* :<nick> [["!" <user>] "@" <host>] SPACE */
|
||||
|
||||
if (*line != ':')
|
||||
return line;
|
||||
|
||||
*nick = ++line;
|
||||
while (*line != '\0' && *line != ' ') {
|
||||
if (*line == '!') {
|
||||
if (*line == '!' || *line == '@') {
|
||||
*line++ = '\0';
|
||||
*address = line;
|
||||
while (*line != '\0' && *line != ' ')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue