Commit 74855290 authored by Dustin L. Howett's avatar Dustin L. Howett

Store the nick in the server (now that we have a server object!)

parent 54fb31ee
......@@ -4,6 +4,7 @@
#include "oligos.h"
#include "server.h"
#include "event.h"
#include "commands.h"
......@@ -25,7 +26,7 @@ void dispatch_event(struct server *server, char *name, struct sender *sender, ch
#define _EVENT(name) void evt_ ## name (struct server *server, struct sender *sender, char *msgbuf)
_EVENT(001) {
char *nick = strsep(&msgbuf, " ");
//_nick = strdup(nick);
server->nick = strdup(nick);
ircprintf(server, "JOIN #bacon");
}
......
#ifndef SERVER_H
#define SERVER_H
#include <stdint.h>
struct server {
char *hostname;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment