Pārlūkot izejas kodu

Various cosmetic fixes

svn: 70
Bryan Drewery 23 gadi atpakaļ
vecāks
revīzija
e54ddda102

+ 6 - 3
src/dccutil.c

@@ -272,8 +272,12 @@ void dcc_chatter(int idx)
   show_banner(idx);
   show_motd(idx);
 Context;
-  if (glob_master(fr))
-    dprintf(idx, STR("There are \002-%d- bot(s)\002 currently linked.\n"), tands + 1);
+  if (glob_master(fr)) {
+    if ((tands+1) > 1)
+      dprintf(idx, STR("There is \002-%d- bot\002 currently linked.\n"), tands + 1);
+    else
+      dprintf(idx, STR("There are \002-%d- bots\002 currently linked.\n"), tands + 1);
+  }
   show_channels(idx, NULL);
 Context;
 
@@ -283,7 +287,6 @@ Context;
      dprintf(idx, "You don't have partyline chat access; commands only.\n\n");
      i = -1;
   }
-//somewhere here, it lets the -p user have partyline access ??
 
   j = dcc[idx].sock;
   strcpy(dcc[idx].u.chat->con_chan, "***");

+ 0 - 3
src/main.c

@@ -1793,9 +1793,6 @@ Context;
   then = now;
   online_since = now;
   autolink_cycle(NULL);		/* Hurry and connect to tandem bots */
-  //add_help_reference("cmds1.help");
-  //add_help_reference("cmds2.help");
-  //add_help_reference("core.help");
   add_hook(HOOK_SECONDLY, (Function) core_secondly);
   add_hook(HOOK_10SECONDLY, (Function) core_10secondly);
   add_hook(HOOK_MINUTELY, (Function) core_minutely);

+ 1 - 1
src/misc.c

@@ -934,7 +934,7 @@ void show_banner(int idx)
   dprintf(idx, STR(" \\ V  V /| | | (_| | | |_| | | |\n"));
   dprintf(idx, STR("  \\_/\\_/ |_|  \\__,_|_|\\__|_| |_|\n"));
   dprintf(idx, STR("           by bryan          \n"));
-  dprintf(idx, STR("info, bugs, suggestions, comments:\nhttp://www.shatow.net/wraith/\n"));
+  dprintf(idx, STR("info, bugs, suggestions, comments:\n- http://www.shatow.net/wraith/ -\n"));
 }
 
 /* show motd to dcc chatter */

+ 1 - 31
src/mod/channels.mod/tclchan.c

@@ -1552,31 +1552,7 @@ static int tcl_channels STDVAR
     Tcl_AppendElement(irp, chan->dname);
   return TCL_OK;
 }
-#ifdef HUB
-/* obsolete
-static int tcl_savechannels STDVAR
-{
-  BADARGS(1, 1, "");
-  if (!chanfile[0]) {
-    Tcl_AppendResult(irp, "no channel file");
-    return TCL_ERROR;
-  }
- //obsolete old .chan write_channels();
-  return TCL_OK;
-}
-static int tcl_loadchannels STDVAR
-{
-  BADARGS(1, 1, "");
-  if (!chanfile[0]) {
-    Tcl_AppendResult(irp, "no channel file");
-    return TCL_ERROR;
-  }
-  setstatic = 0;
-  read_channels(1);
-  return TCL_OK;
-}
-*/
-#endif
+
 static int tcl_validchan STDVAR
 {
   struct chanset_t *chan;
@@ -2025,12 +2001,6 @@ static tcl_cmds channels_cmds[] =
   {"exemptlist",	tcl_exemptlist},
   {"invitelist",	tcl_invitelist},
   {"banlist",		tcl_banlist},
-#ifdef HUB
-/* obsolete
-  {"savechannels",	tcl_savechannels},
-  {"loadchannels",	tcl_loadchannels},
-*/
-#endif
   {"validchan",		tcl_validchan},
   {"isdynamic",		tcl_isdynamic},
   {"getchaninfo",	tcl_getchaninfo},

+ 0 - 1
src/mod/console.mod/console.c

@@ -411,7 +411,6 @@ char *console_start(Function * global_funcs)
   add_builtins(H_chon, mychon);
   add_builtins_dcc(H_dcc, mydcc);
   add_tcl_ints(myints);
-  //add_help_reference("console.help");
   USERENTRY_CONSOLE.get = def_get;
   add_entry_type(&USERENTRY_CONSOLE);
   add_lang_section("console");

+ 1 - 1
src/mod/server.mod/servmsg.c

@@ -1014,7 +1014,7 @@ static void eof_server(int idx)
   int i = 0;
   putlog(LOG_SERV, "*", "%s %s", IRC_DISCONNECTED, dcc[idx].host);
   if (ischanhub() && auth_total > 0) {
-    putlog(LOG_MISC, "*", "Removing %d auth entries.", auth_total);
+    putlog(LOG_DEBUG, "*", "Removing %d auth entries.", auth_total);
     for (i = 0; i < auth_total; i++)
       removeauth(i);  
   }