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:
parent
006876a87c
commit
4770c1c4ee
@ -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
|
||||||
|
@ -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 != ' ')
|
||||||
|
Loading…
Reference in New Issue
Block a user