Added code for returning User instead of IP address
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
#include "message_helpers.h"
|
||||
|
||||
char* fetch_address(char* message) {
|
||||
char* user_string(char* message) {
|
||||
char* token = malloc (sizeof(char) * strlen(message));
|
||||
token = strtok(message," \r\n");
|
||||
if (strcmp(token,"TO:") == 0) {
|
||||
|
@@ -3,4 +3,4 @@
|
||||
/* If the message contains a string of the form:
|
||||
TO: <Username>
|
||||
then return 'Username' */
|
||||
char* fetch_address(char* message);
|
||||
char* user_string(char* message);
|
||||
|
Reference in New Issue
Block a user