summaryrefslogtreecommitdiff
path: root/general_network.c
diff options
context:
space:
mode:
Diffstat (limited to 'general_network.c')
-rw-r--r--general_network.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/general_network.c b/general_network.c
index 9676c2b..7944d21 100644
--- a/general_network.c
+++ b/general_network.c
@@ -83,7 +83,7 @@ char channel_mode_types[UCHAR_MAX] = {
};
int privmsg(struct string source, struct string target, size_t num_message_parts, struct string message[num_message_parts]) {
- if (!STRING_EQ(target, STRING("1HC000001"))) { // if not sending to our one local user
+ if (!STRING_EQ(target, STRING(SID"000001"))) { // if not sending to our one local user
if (source.len != 0) {
SEND(STRING(":"));
SEND(source);
@@ -103,7 +103,7 @@ int privmsg(struct string source, struct string target, size_t num_message_parts
if (target.data[0] == '#') {
struct channel_info *channel = get_table_index(channel_list, target);
- if (channel && has_table_index(channel->user_list, STRING("1HC000001")))
+ if (channel && has_table_index(channel->user_list, STRING(SID"000001")))
goto privmsg_client;
}
@@ -114,13 +114,13 @@ int privmsg(struct string source, struct string target, size_t num_message_parts
if (source.len != 0) {
SENDCLIENT(STRING(":"));
// TODO: Proper lookups of users and such
- if (STRING_EQ(source, STRING("1HC000000"))) {
+ if (STRING_EQ(source, STRING(SID"000000"))) {
SENDCLIENT(nick);
SENDCLIENT(STRING("!"));
SENDCLIENT(nick);
SENDCLIENT(STRING("@"));
SENDCLIENT(hostmask);
- } else if (STRING_EQ(source, STRING("1HC"))) {
+ } else if (STRING_EQ(source, STRING(SID))) {
SENDCLIENT(server_name);
} else {
SENDCLIENT(source);
@@ -132,7 +132,7 @@ int privmsg(struct string source, struct string target, size_t num_message_parts
SENDCLIENT(STRING(" PRIVMSG "));
}
- if (STRING_EQ(target, STRING("1HC000001")))
+ if (STRING_EQ(target, STRING(SID"000001")))
SENDCLIENT(client_nick);
else
SENDCLIENT(target);
@@ -154,7 +154,7 @@ int remove_user(struct string uid, struct string reason) { // If disconnecting t
for (uint64_t i = 0; i < channel_list.len; i++) { // TODO: Use channel list attached to the user (doesn't exist yet)
struct channel_info *chan_info = channel_list.array[i].ptr;
if (has_table_index(chan_info->user_list, uid)) {
- if (send_client && has_table_index(chan_info->user_list, STRING("1HC000001"))) {
+ if (send_client && has_table_index(chan_info->user_list, STRING(SID"000001"))) {
SENDCLIENT(STRING(":"));
SENDCLIENT(info->nick);
SENDCLIENT(STRING("!"));