Просмотр исходного кода

* Fixed some excess newlines when a user is booted for losing hub/leaf access.

svn: 1994
Bryan Drewery 21 лет назад
Родитель
Сommit
2fc7ab9a2f
2 измененных файлов с 7 добавлено и 6 удалено
  1. 1 0
      doc/UPDATES
  2. 6 6
      src/cmds.c

+ 1 - 0
doc/UPDATES

@@ -69,6 +69,7 @@ Lines prefixxed with '-' were disabled before release and are not finishsed, or
 * Fixed bots unbanning bots via botnet requests when the bot is set +k for the chan.
 * Fixed a bunch of lame bugs in the getop system
 * Now using ANSI color code *0* to close bold (as opposed to new standard: 22)
+* Fixed some excess newlines when a user is booted for losing hub/leaf access.
 
 1.2.2
 * Don't sanity check flags for users on DCC CHAT if they are on the bot via .botcmd.

+ 6 - 6
src/cmds.c

@@ -2133,8 +2133,8 @@ int check_dcc_attrs(struct userrec *u, flag_t oatr)
   for (int i = 0; i < dcc_total; i++) {
    if (dcc[i].type && !dcc[i].simul) {
     if (dcc[i].type == &DCC_CHAT && !conf.bot->hub && !ischanhub() && u == conf.bot->u) {
-      dprintf(i, "I am no longer a chathub..\n\n");
-      do_boot(i, conf.bot->nick, "I am no longer a chathub.\n\n");
+      dprintf(i, "I am no longer a chathub..\n");
+      do_boot(i, conf.bot->nick, "I am no longer a chathub.");
       continue;
     }
 
@@ -2213,15 +2213,15 @@ int check_dcc_attrs(struct userrec *u, flag_t oatr)
       if (conf.bot->hub && !(u->flags & (USER_HUBA))) {
         /* no hub access, drop them. */
         dprintf(i, "-+- POOF! -+-\n");
-        dprintf(i, "You no longer have hub access.\n\n");
-        do_boot(i, conf.bot->nick, "No hub access.\n\n");
+        dprintf(i, "You no longer have hub access.\n");
+        do_boot(i, conf.bot->nick, "No hub access.");
         continue;
       }     
       if (!conf.bot->hub && ischanhub() && !(u->flags & (USER_CHUBA))) {
         /* no chanhub access, drop them. */
         dprintf(i, "-+- POOF! -+-\n");
-        dprintf(i, "You no longer have chathub access.\n\n");
-        do_boot(i, conf.bot->nick, "No chathub access.\n\n");
+        dprintf(i, "You no longer have chathub access.\n");
+        do_boot(i, conf.bot->nick, "No chathub access.");
         continue;
       }
     }