1158 |
int |
int |
1159 |
irc_cmd_recv_004 (t_irc_server *server, char *host, char *arguments) |
irc_cmd_recv_004 (t_irc_server *server, char *host, char *arguments) |
1160 |
{ |
{ |
1161 |
|
char *pos; |
1162 |
|
|
1163 |
/* make gcc happy */ |
/* make gcc happy */ |
1164 |
(void) host; |
(void) host; |
1165 |
(void) arguments; |
|
1166 |
|
pos = strchr (arguments, ' '); |
1167 |
|
if (pos) |
1168 |
|
pos[0] = '\0'; |
1169 |
|
if (strcmp (server->nick, arguments) != 0) |
1170 |
|
{ |
1171 |
|
free (server->nick); |
1172 |
|
server->nick = strdup (arguments); |
1173 |
|
} |
1174 |
|
|
1175 |
irc_cmd_recv_server_msg (server, host, arguments); |
irc_cmd_recv_server_msg (server, host, arguments); |
1176 |
|
|
2232 |
pos = strstr (arguments, " = "); |
pos = strstr (arguments, " = "); |
2233 |
if (pos) |
if (pos) |
2234 |
arguments = pos + 3; |
arguments = pos + 3; |
2235 |
|
else |
2236 |
|
{ |
2237 |
|
pos = strstr (arguments, " * "); |
2238 |
|
if (pos) |
2239 |
|
arguments = pos + 3; |
2240 |
|
else |
2241 |
|
{ |
2242 |
|
pos = strstr (arguments, " @ "); |
2243 |
|
if (pos) |
2244 |
|
arguments = pos + 3; |
2245 |
|
} |
2246 |
|
} |
2247 |
pos = strchr (arguments, ' '); |
pos = strchr (arguments, ' '); |
2248 |
if (pos) |
if (pos) |
2249 |
{ |
{ |