82 |
dlink_node *ptr = NULL, *ptr_next = NULL; |
dlink_node *ptr = NULL, *ptr_next = NULL; |
83 |
struct Client *target_p = NULL; |
struct Client *target_p = NULL; |
84 |
const char *inpath = client_p->name; |
const char *inpath = client_p->name; |
|
char *nick = NULL; |
|
|
char *user = NULL; |
|
|
char *host = NULL; |
|
85 |
char *reason = NULL; |
char *reason = NULL; |
86 |
char bufhost[IRCD_BUFSIZE]; |
char bufhost[IRCD_BUFSIZE]; |
87 |
char conf_nick[NICKLEN + 1]; |
char nick[NICKLEN + 1]; |
88 |
char conf_user[USERLEN + 1]; |
char user[USERLEN + 1]; |
89 |
char conf_host[HOSTLEN + 1]; |
char host[HOSTLEN + 1]; |
90 |
char def_reason[] = "No reason"; |
char def_reason[] = "No reason"; |
91 |
unsigned int count = 0; |
unsigned int count = 0; |
92 |
struct split_nuh_item nuh; |
struct split_nuh_item nuh; |
99 |
} |
} |
100 |
|
|
101 |
nuh.nuhmask = parv[1]; |
nuh.nuhmask = parv[1]; |
102 |
nuh.nickptr = conf_nick; |
nuh.nickptr = nick; |
103 |
nuh.userptr = conf_user; |
nuh.userptr = user; |
104 |
nuh.hostptr = conf_host; |
nuh.hostptr = host; |
105 |
|
|
106 |
nuh.nicksize = sizeof(conf_nick); |
nuh.nicksize = sizeof(nick); |
107 |
nuh.usersize = sizeof(conf_user); |
nuh.usersize = sizeof(user); |
108 |
nuh.hostsize = sizeof(conf_host); |
nuh.hostsize = sizeof(host); |
109 |
|
|
110 |
split_nuh(&nuh); |
split_nuh(&nuh); |
111 |
|
|
130 |
|
|
131 |
if (!MyConnect(target_p) && !IsOperGlobalKill(source_p)) |
if (!MyConnect(target_p) && !IsOperGlobalKill(source_p)) |
132 |
continue; |
continue; |
133 |
|
|
134 |
if (match(nick, target_p->name) && |
if (match(nick, target_p->name) && |
135 |
match(user, target_p->username) && |
match(user, target_p->username) && |
136 |
match(host, target_p->host)) |
match(host, target_p->host)) |