diff options
Diffstat (limited to 'src/map/irc.c')
-rw-r--r-- | src/map/irc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/irc.c b/src/map/irc.c index b3cd74468..276dcccb8 100644 --- a/src/map/irc.c +++ b/src/map/irc.c @@ -197,7 +197,7 @@ void irc_parse_sub(int fd, char *incoming_string) char *source_nick=NULL;
char *source_ident=NULL;
char *source_host=NULL;
- char *state_mgr=NULL;
+// char *state_mgr=NULL;
memset(source,'\0',256);
memset(command,'\0',256);
@@ -208,7 +208,7 @@ void irc_parse_sub(int fd, char *incoming_string) sscanf(incoming_string, ":%255s %255s %255s :%4095[^\n]", source, command, target, message);
if (source != NULL) {
if (strstr(source,"!") != NULL) {
- sscanf(source,"%s!%s@$s",source_nick, source_ident, source_host);
+ sscanf(source,"%s!%s@%s",source_nick, source_ident, source_host);
//source_nick = strtok_r(source,"!",&state_mgr);
//source_ident = strtok_r(NULL,"@",&state_mgr);
//source_host = strtok_r(NULL,"%%",&state_mgr);
@@ -253,7 +253,7 @@ int send_to_parser(int fd, char *input,char key[2]) char format[4];
char *temp_string=NULL;
char *next_string=NULL;
- char *state_mgr=NULL;
+// char *state_mgr=NULL;
int total_loops=0;
//temp_string = strtok_r(input,key,&state_mgr);
|