sendto_one(source_p, form_str(ERR_NOPRIVILEGES), me.name, source_p->name);
return;
}
-
+
sendto_match_butone(IsServer(client_p) ? client_p : NULL, source_p,
nick + 1, (*nick == '#') ? MATCH_HOST : MATCH_SERVER,
"%s $%s :%s", command, nick, text);
{
*mbuf = *(pbuf - 1) = '\0';
sendto_channel_local(ALL_MEMBERS, 0, chptr, ":%s %s %s",
- (IsHidden(source_p) || ConfigServerHide.hide_servers) ? me.name : source_p->name,
+ (IsHidden(source_p) || ConfigServerHide.hide_servers) ? me.name : source_p->name,
modebuf, parabuf);
sendto_server(client_p, NOCAPS, CAP_TS6,
":%s %s %s", source_p->name, modebuf, parabuf);
else
sameuser = !irccmp(target_p->username, parv[5]) &&
!irccmp(target_p->host, host);
-
+
/*
* If the users are the same (loaded a client on a different server)
* and the new users ts is older, or the users are different and the
}
if(parc < 3)
- {
- sendto_one(source_p, form_str(ERR_NEEDMOREPARAMS), me.name, source_p->name, "CHGHOST");
+ {
+ sendto_one(source_p, form_str(ERR_NEEDMOREPARAMS), me.name, source_p->name, "CHGHOST");
return;
}
sendto_one(source_p, form_str(ERR_NOSUCHNICK),
me.name, source_p->name, parv[1]);
return;
- }
+ }
if(strlen(parv[2]) > HOSTLEN)
{
sendto_server(NULL, CAP_ENCAP, NOCAPS,
":%s ENCAP * CHGHOST %s %s",
me.name, target_p->name, parv[2]);
-
+
if(strcmp(target_p->host, parv[2]))
user_set_hostmask(target_p, NULL, parv[2]);
}
}
if(parc < 3)
- {
- sendto_one(source_p, form_str(ERR_NEEDMOREPARAMS), me.name, source_p->name, "CHGIDENT");
+ {
+ sendto_one(source_p, form_str(ERR_NEEDMOREPARAMS), me.name, source_p->name, "CHGIDENT");
return;
}
sendto_one(source_p, form_str(ERR_NOSUCHNICK),
me.name, source_p->name, parv[1]);
return;
- }
+ }
if(strlen(parv[2]) > USERLEN)
{
* pull values back out of, splitmode can be four states - but you can
* only set to three, which means we cant use the same table --fl_
*/
- sendto_one(source_p, ":%s NOTICE %s :SPLITMODE is currently %s",
- me.name, source_p->name,
+ sendto_one(source_p, ":%s NOTICE %s :SPLITMODE is currently %s",
+ me.name, source_p->name,
splitmode_status[(splitchecking + (splitmode * 2))]);
}
if (newval >= 0)
{
sendto_snomask(SNO_ALL, L_ALL,
- "%s has changed SPLITNUM to %i",
+ "%s has changed SPLITNUM to %i",
get_oper_name(source_p), newval);
split_servers = newval;
check_splitmode(NULL);
}
else
- sendto_one(source_p, ":%s NOTICE %s :SPLITNUM is currently %i",
+ sendto_one(source_p, ":%s NOTICE %s :SPLITNUM is currently %i",
me.name, source_p->name, split_servers);
}
if (newval >= 0)
{
sendto_snomask(SNO_ALL, L_ALL,
- "%s has changed SPLITUSERS to %i",
+ "%s has changed SPLITUSERS to %i",
get_oper_name(source_p), newval);
split_users = newval;
check_splitmode(NULL);
}
else
- sendto_one(source_p, ":%s NOTICE %s :SPLITUSERS is currently %i",
+ sendto_one(source_p, ":%s NOTICE %s :SPLITUSERS is currently %i",
me.name, source_p->name, split_users);
}
if (newval >= 0)
{
sendto_snomask(SNO_ALL, L_ALL,
- "%s has changed JFLOODTIME to %i",
+ "%s has changed JFLOODTIME to %i",
get_oper_name(source_p), newval);
GlobalSetOptions.joinfloodtime = newval;
}
else
- sendto_one(source_p, ":%s NOTICE %s :JFLOODTIME is currently %i",
+ sendto_one(source_p, ":%s NOTICE %s :JFLOODTIME is currently %i",
me.name, source_p->name, GlobalSetOptions.joinfloodtime);
}
if (newval >= 0)
{
sendto_snomask(SNO_ALL, L_ALL,
- "%s has changed JFLOODCOUNT to %i",
+ "%s has changed JFLOODCOUNT to %i",
get_oper_name(source_p), newval);
GlobalSetOptions.joinfloodcount = newval;
}
else
- sendto_one(source_p, ":%s NOTICE %s :JFLOODCOUNT is currently %i",
+ sendto_one(source_p, ":%s NOTICE %s :JFLOODCOUNT is currently %i",
me.name, source_p->name, GlobalSetOptions.joinfloodcount);
}
if (HasUMode(target_p, UMODE_OPER))
{
buf[0] = 0;
-
+
strcat(buf, "is an IRC Operator");
if (HasFlag(target_p, FLAGS_SERVICE) || HasUMode(target_p, UMODE_SERVICE))
a = b = c = d = 0;
- /*
+ /*
* Output: ALPHA.BETA.GAMMA.IP
* ALPHA is unique for a.b.c.d
* BETA is unique for a.b.c.*
| logging_entry
| oper_entry
| channel_entry
- | class_entry
+ | class_entry
| listen_entry
| auth_entry
| serverinfo_entry
general_opers_bypass_callerid | general_default_floodcount |
general_min_nonwildcard | general_min_nonwildcard_simple |
general_throttle_num | general_throttle_time | general_havent_read_conf |
- general_ping_cookie | general_nick_collide_realhost |
- general_disable_auth |
+ general_ping_cookie | general_nick_collide_realhost |
+ general_disable_auth |
general_tkline_expire_notices | general_gline_enable |
general_gline_duration | general_gline_request_duration |
general_gline_min_cidr |
struct dnsbl_entry *dentry = ptr->data;
char hostbuf[RFC1035_MAX_DOMAIN_LENGTH + 1];
struct DnsblLookup *info;
-
+
info = MyMalloc(sizeof(struct DnsblLookup));
dlinkAdd(info, &info->node, &cptr->localClient->dnsbl_queries);
dlinkAdd(info, &info->enode, &dentry->lookups);
callback(ctx, NULL, NULL);
return NULL;
}
-
+
request = mp_pool_get(dns_pool);
memset(request, 0, sizeof(*request));
close_listener(ptr->data);
}
-static void
+static void
accept_connection(fde_t *pfd, void *data)
{
static time_t last_oper_notice = 0;
/* The auth system has its own timeout check, using an ordered queue,
* so a timeout here is not necessary
*/
- comm_connect_tcp(&auth->fd, auth->client->sockhost, 113,
+ comm_connect_tcp(&auth->fd, auth->client->sockhost, 113,
(struct sockaddr *) &localaddr, localaddr.ss_len,
auth_connect_callback, auth, auth->client->localClient->ip.ss.ss_family, 0);
return 1; /* We suceed here for now */
dead_link_on_write(to, 0);
return;
}
-
+
if (IsServer(to) && HasSFlag(to, SERVER_FLAGS_MIGRATING_QUEUE_WRITE))
dbuf_add(&to->serv->migrate_sendq, buf);
else
dbuf_put_fmt(local_buf, ":%s ", from->name);
dbuf_put_fmt(remote_buf, ":%s ", from->name);
-
+
dbuf_put_fmt(uid_buf, ":%s ", ID(from));
va_start(alocal, pattern);
buffer = dbuf_alloc();
- va_start(args, pattern);
+ va_start(args, pattern);
send_format(buffer, pattern, args);
va_end(args);
- DLINK_FOREACH(ptr, chptr->localmembers.head)
- {
+ DLINK_FOREACH(ptr, chptr->localmembers.head)
+ {
struct Membership *ms = ptr->data;
struct Client *target_p = ms->client_p;
dbuf_ref_free(uid_buffer);
dbuf_ref_free(nick_buffer);
-}
+}
void
announce(const char *pattern, ...)