Explorar o código

* Removed some lingering defines

svn: 1839
Bryan Drewery %!s(int64=21) %!d(string=hai) anos
pai
achega
693a0bcb39
Modificáronse 2 ficheiros con 5 adicións e 10 borrados
  1. 0 4
      src/botcmd.c
  2. 5 6
      src/mod/update.mod/update.c

+ 0 - 4
src/botcmd.c

@@ -866,7 +866,6 @@ static void bot_thisbot(int idx, char *par)
   strcpy(dcc[idx].nick, par);
 }
 
-#ifdef HUB
 static void bot_hublog(char *botnick, char *code, char *msg)
 {
   char *par = NULL, *parp;
@@ -880,7 +879,6 @@ static void bot_hublog(char *botnick, char *code, char *msg)
   }
   free(parp);
 }
-#endif /* HUB */
 
 /* Used to send a direct msg from Tcl on one bot to Tcl on another
  * zapf <frombot> <tobot> <code [param]>
@@ -1275,7 +1273,6 @@ void bounce_simul(int idx, char *buf)
   putbot(dcc[idx].simulbot, rmsg);
 }
 
-#ifdef HUB
 static void bot_rsimr(char *botnick, char *code, char *msg)
 {
   if (msg[0]) {
@@ -1290,7 +1287,6 @@ static void bot_rsimr(char *botnick, char *code, char *msg)
     free(parp);
   }
 }
-#endif /* HUB */
 
 static cmd_t my_bot[] = 
 {

+ 5 - 6
src/mod/update.mod/update.c

@@ -420,7 +420,6 @@ void update_report(int idx, int details)
   }
 }
 
-#ifdef HUB
 static void cmd_bupdate(int idx, char *par)
 {
   for (int i = 0; i < dcc_total; i++) {
@@ -434,17 +433,17 @@ static void cmd_bupdate(int idx, char *par)
 
 cmd_t update_cmds[] =
 {
+#ifdef HUB
   {"bupdate",		"a",	(Function) cmd_bupdate,		NULL, HUB},
+#endif /* HUB */
   {NULL,		NULL,	NULL,				NULL, 0}
 };
-#endif /* HUB */
 
 void update_init()
 {
   add_builtins("bot", update_bot);
-#ifdef HUB
-  add_builtins("dcc", update_cmds);
-  if (conf.bot->hub)
+  if (conf.bot->hub) {
+    add_builtins("dcc", update_cmds);
     timer_create_secs(30, "check_updates", (Function) check_updates);
-#endif /* HUB */
+  }
 }