-2004-05-15 Isomer <isomer@undernet.org>
+2004-05-15 Isomer <isomer@undernet.org>
+
+ [Original ChangeLog date: 2003-11-05 -MDP]
+
+ * ircd/s_misc.c, ircd/s_user.c: added numnick to SNO_CONNEXIT
+ messages (so you can match EXIT's to CONN's)
+
+2004-05-15 Reed Loden <reed@reedloden.com>
+
+ [Original ChangeLog date: 2003-05-01 -MDP]
+
+ * ircd/s_err.c: Added network to text and edited 001 a bit.
+
+ * ircd/s_user.c: Send network with 001.
+
+2004-05-15 Michael Poole <mdpoole@troilus.org>
+
+ * ircd/s_user.c (add_target): Move free target invite check...
+
+ * ircd/s_user.c (check_target_limit): to here, matching 2.10.11's
+ behavior.
+
+2004-05-15 Isomer <isomer@undernet.org>
[Original ChangeLog date: 2003-11-23 -MDP]
* ircd/s_user.c: Altered (K-lined) to depend on find_kill type
-2004-05-15 Michael Poole <mdpoole@troilus.org>
+2004-05-15 splidge <splidge@quakenet.org>
+
+ [Original ChangeLog date: 2003-09-03 -MDP]
- * ircd/s_user.c (hide_hostmask): Never send rejoins to a channel
- when a zombie hides his hostmask.
+ * ircd/s_user.c: Made hide_hostmask() not show bogus joins for
+ channels where the user is a zombie.
2004-05-15 beware <steendijk@xs4all.nl>
/* 000 */
{ 0 },
/* 001 */
- { RPL_WELCOME, ":Welcome to the Internet Relay Network%s%s, %s", "001" },
+ { RPL_WELCOME, ":Welcome to the %s IRC Network%s%s, %s", "001" },
/* 002 */
{ RPL_YOURHOST, ":Your host is %s, running version %s", "002" },
/* 003 */
/* 500 */
{ 0 },
/* 501 */
- { ERR_UMODEUNKNOWNFLAG, ":Unknown MODE flag", "501" },
+ { ERR_UMODEUNKNOWNFLAG, "%c :Unknown user MODE flag", "501" },
/* 502 */
{ ERR_USERSDONTMATCH, ":Cant change mode for other users", "502" },
/* 503 */
if (feature_bool(FEAT_CONNEXIT_NOTICES) && IsUser(victim))
sendto_opmask_butone(0, SNO_CONNEXIT,
- "Client exiting: %s (%s@%s) [%s] [%s]",
+ "Client exiting: %s (%s@%s) [%s] [%s] <%s%s>",
cli_name(victim), cli_user(victim)->username,
cli_user(victim)->host, comment,
- ircd_ntoa((const char*) &(cli_ip(victim))));
+ ircd_ntoa((const char*) &(cli_ip(victim))),
+ NumNick(victim) /* two %s's */);
update_load();
on_for = CurrentTime - cli_firsttime(victim);
if (IsUser(victim))
- log_write(LS_USER, L_TRACE, 0, "%s (%3d:%02d:%02d): %s@%s (%s)",
- myctime(cli_firsttime(victim)), on_for / 3600,
- (on_for % 3600) / 60, on_for % 60, cli_user(victim)->username,
- cli_sockhost(victim), cli_name(victim));
+ log_write(LS_USER, L_TRACE, 0, "%Tu %i %s@%s %s %s %s%s %s :%s",
+ cli_firsttime(victim), on_for,
+ cli_user(victim)->username, cli_sockhost(victim),
+ ircd_ntoa((const char*) &(cli_ip(victim))),
+ IsAccount(victim) ? cli_username(victim) : "0",
+ NumNick(victim), /* two %s's */
+ cli_name(victim), cli_info(victim));
if (victim != cli_from(killer) /* The source knows already */
&& IsClient(victim)) /* Not a Ping struct or Log file */
send_reply(sptr,
RPL_WELCOME,
+ feature_str(FEAT_NETWORK),
feature_str(FEAT_PROVIDER) ? " via " : "",
feature_str(FEAT_PROVIDER) ? feature_str(FEAT_PROVIDER) : "",
nick);
set_snomask(sptr, cli_snomask(sptr) & SNO_NOISY, SNO_ADD);
if (feature_bool(FEAT_CONNEXIT_NOTICES))
sendto_opmask_butone(0, SNO_CONNEXIT,
- "Client connecting: %s (%s@%s) [%s] {%d}",
+ "Client connecting: %s (%s@%s) [%s] {%d} [%s] <%s%s>",
cli_name(sptr), user->username, user->host,
- cli_sock_ip(sptr), get_client_class(sptr));
+ cli_sock_ip(sptr), get_client_class(sptr),
+ cli_info(sptr), NumNick(cptr) /* two %s's */);
IPcheck_connect_succeeded(sptr);
/*
targets = cli_targets(sptr);
- if (IsChannelName(cli_name(sptr)) && IsInvited(sptr, target))
- return;
/*
* Already in table?
*/
assert(cli_local(sptr));
targets = cli_targets(sptr);
+ /* If user is invited to channel, give him/her a free target */
+ if (IsChannelName(name) && IsInvited(sptr, target))
+ return 0;
+
/*
* Same target as last time?
*/
do_host_hiding = 1;
break;
default:
+ send_reply(sptr, ERR_UMODEUNKNOWNFLAG, *m);
break;
}
}