/***********************************************************************
X3 ChangeLog
+2005-07-06 Alex Schumann <rubin@afternet.org>
+
+ * src/chanserv.c: Fixed a couple awkward looking outputs with userlist
+
+ * src/opserv.c: Fixed an awkward output of trace count etc.
+
2005-06-22 Alex Schumann <rubin@afternet.org>
* src/chanserv.help: Improved DURATION help
send_message(list->user, list->bot, "CSMSG_ACCESS_SEARCH_HEADER", list->channel->name, user_level_name_from_level(list->lowest), user_level_name_from_level(list->highest), list->search);
else
send_message(list->user, list->bot, "CSMSG_ACCESS_ALL_HEADER", list->channel->name, user_level_name_from_level(list->lowest), user_level_name_from_level(list->highest));
- table_send(list->bot, list->user->nick, 0, NULL, list->table);
if(list->table.length == 1)
{
msg = user_find_message(list->user, "MSG_NONE");
send_message_type(4, list->user, list->bot, " %s", msg);
}
+ else
+ table_send(list->bot, list->user->nick, 0, NULL, list->table);
}
static int
lData.search = (argc > 1) ? argv[1] : NULL;
send_list = def_list;
/* What does the following line do exactly?? */
- (void)zoot_list; /* since it doesn't show user levels */
+ /*(void)zoot_list; ** since it doesn't show user levels */
/* this does nothing!! -rubin
if(user->handle_info)
{ "OSMSG_USER_SEARCH_RESULTS", "The following users were found:" },
{ "OSMSG_USER_SEARCH_HEADER", "Nick User@Host (Account)" },
{ "OSMSG_USER_SEARCH_BAR", "-------------------------------------------" },
- { "OSMSG_USER_SEARCH_COUNT", "------------ Found %4u matches -----------" },
+ { "OSMSG_USER_SEARCH_COUNT", "There were %4u matches" },
+ { "OSMSG_USER_SEARCH_COUNT_BAR", "------------ Found %4u matches -----------" },
{ "OSMSG_CHANNEL_SEARCH_RESULTS", "The following channels were found:" },
{ "OSMSG_GLINE_SEARCH_RESULTS", "The following glines were found:" },
{ "OSMSG_LOG_SEARCH_RESULTS", "The following log entries were found:" },
if (action == trace_print_func)
{
- reply("OSMSG_USER_SEARCH_RESULTS");
+ reply("OSMSG_USER_SEARCH_RESULTS");
reply("OSMSG_USER_SEARCH_BAR");
reply("OSMSG_USER_SEARCH_HEADER");
reply("OSMSG_USER_SEARCH_BAR");
dict_foreach(das.dict, opserv_show_hostinfo, &das);
if (matches)
- reply("OSMSG_USER_SEARCH_COUNT", matches);
+ {
+ if(action == trace_print_func)
+ reply("OSMSG_USER_SEARCH_COUNT_BAR", matches);
+ else
+ reply("OSMSG_USER_SEARCH_COUNT", matches);
+ }
else
- reply("MSG_NO_MATCHES");
+ reply("MSG_NO_MATCHES");
if (das.discrim->channel)
UnlockChannel(das.discrim->channel);