Skip to content
This repository was archived by the owner on Jun 6, 2021. It is now read-only.

Commit

Permalink
Make SERVER_NAME() really work in a SID/UID-less world.
Browse files Browse the repository at this point in the history
  • Loading branch information
William Pitcock committed Dec 5, 2010
1 parent c99ce7a commit ce0f1ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/servers.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ typedef struct {
/* space for reason etc here */
} hook_server_delete_t;

#define SERVER_NAME(serv) ((serv)->sid[0] ? (serv)->sid : (serv)->name)
#define SERVER_NAME(serv) ((serv)->sid ? (serv)->sid : (serv)->name)
#define ME (ircd->uses_uid ? me.numeric : me.name)

/* servers.c */
Expand Down

0 comments on commit ce0f1ef

Please sign in to comment.