Skip to content
This repository
Browse code

- announce_separator

  • Loading branch information...
commit abf40c800fdf0064502035afec7f4074b05d9ef1 1 parent 7def377
dm authored
3  LIESMICH.modDinoex
@@ -3,6 +3,9 @@ Aktuelle Version auf: http://iroffer.dinoex.net/
3 3 Ab Version 3.3:
4 4 ---------------
5 5
  6 +212) announce_seperator
  7 + Zeichen zwischen Pack Nummer und Name beim Announce.
  8 +
6 9 bugfix: Transfer Complete
7 10 versions affected: 3.0 - 3.2
8 11 Zeige KB richtig an.
3  README.modDinoex
@@ -3,6 +3,9 @@ Aktuelle Version auf: http://iroffer.dinoex.net/
3 3 With Version 3.3:
4 4 -----------------
5 5
  6 +212) announce_seperator (inspired by dondieschotte)
  7 + printed between pack number and name on annoucne
  8 +
6 9 bugfix: Transfer Complete
7 10 versions affected: 3.0 - 3.2
8 11 show size of transfer in kb instead of bytes.
1  THANKS
@@ -234,6 +234,7 @@ dondieschotte
234 234 option "nickserv_pass" per network
235 235 report window resize bug
236 236 report "Transfer Complete" bug
  237 + option "announce_separator"
237 238
238 239 dsd
239 240 admin command "autoadd"
1  TODO
@@ -65,7 +65,6 @@ Page last modified: 09/01/04
65 65
66 66 Short Term Features:
67 67 1096 autoadd_group with predefined matchings
68   - 1097 short-announce seperator
69 68
70 69 Long Term Features:
71 70 1008 use text or xml for statefile
7 beispiel.config
@@ -541,6 +541,13 @@ adddir_exclude *.md5
541 541 #autoaddann_short
542 542
543 543 ##############################################################################
  544 +### - announce seperator - ###
  545 +### Zeichen zwischen Pack Nummer und Name beim Announce. ###
  546 +### Default: space ###
  547 +#announce_seperator " "
  548 +announce_seperator " - "
  549 +
  550 +##############################################################################
544 551 ### - auto add time - ###
545 552 ### Zeit in Sekunden nach der der Bot nach neuen Files im Verzeichnis ###
546 553 ### autoadd_dir sucht. Standardwert 0 d.h. nicht aktiv. ###
5 de.txt
@@ -1599,7 +1599,6 @@
1599 1599 1638 "Already Queued %s for Pack %i!"
1600 1600 1639 "Queueing %s for Pack %i"
1601 1601 1640 "** %s"
1602   -1641 "[\2%s\2] %s"
1603 1602 1642 "%s - /MSG %s XDCC SEND %i"
1604 1603 1643 "Announced [%s] - %s"
1605 1604 1645 "A A A A A %s"
@@ -1712,7 +1711,6 @@
1712 1711 1754 "xx_trno %s\n"
1713 1712 1755 "SANNOUNCE"
1714 1713 1756 "Kurze ANNOUNCE f�r Paket <n> in allen Channels"
1715   -1757 "\2%i\2 %s"
1716 1714 1758 "A A A A A sannounce %i"
1717 1715 1759 "autoaddann_short"
1718 1716 1760 "[MD5]: Pack %d: Cant Access Offered File '%s': %s"
@@ -2128,3 +2126,6 @@
2128 2126 2182 "curl_multi_fdset() = %d"
2129 2127 2183 "curl_multi_remove_handle() = %d"
2130 2128 2184 "curl_multi_perform() = %d"
  2129 +2185 "[\2%s\2]%s%s"
  2130 +2186 "\2%i\2%s%s"
  2131 +2187 "announce_seperator"
5 en.txt
@@ -1599,7 +1599,6 @@
1599 1599 1638 "Already Queued %s for Pack %i!"
1600 1600 1639 "Queueing %s for Pack %i"
1601 1601 1640 "** %s"
1602   -1641 "[\2%s\2] %s"
1603 1602 1642 "%s - /MSG %s XDCC SEND %i"
1604 1603 1643 "Announced [%s] - %s"
1605 1604 1645 "A A A A A %s"
@@ -1712,7 +1711,6 @@
1712 1711 1754 "xx_trno %s\n"
1713 1712 1755 "SANNOUNCE"
1714 1713 1756 "Short ANNOUNCE <n> <name> in all joined channels"
1715   -1757 "\2%i\2 %s"
1716 1714 1758 "A A A A A sannounce %i"
1717 1715 1759 "autoaddann_short"
1718 1716 1760 "[MD5]: Pack %d: Cant Access Offered File '%s': %s"
@@ -2128,3 +2126,6 @@
2128 2126 2182 "curl_multi_fdset() = %d"
2129 2127 2183 "curl_multi_remove_handle() = %d"
2130 2128 2184 "curl_multi_perform() = %d"
  2129 +2185 "[\2%s\2]%s%s"
  2130 +2186 "\2%i\2%s%s"
  2131 +2187 "announce_seperator"
7 sample.config
@@ -520,6 +520,13 @@ noduplicatefiles
520 520 #autoaddann_short
521 521
522 522 ##############################################################################
  523 +### - announce seperator - ###
  524 +### printed between pack number and name on annoucne. ###
  525 +### Default: space ###
  526 +#announce_seperator " "
  527 +announce_seperator " - "
  528 +
  529 +##############################################################################
523 530 ### - auto add time - ###
524 531 ### Time in seconds when the bot checks for new files in autoadd_dir. ###
525 532 ### Default: 0 = disabled. ###
6 src/dinoex_admin.c
@@ -3488,7 +3488,7 @@ void a_announce(const userinput * const u)
3488 3488
3489 3489 tempstr = mycalloc(maxtextlength);
3490 3490 tempstr2 = mycalloc(maxtextlength);
3491   - snprintf(tempstr2, maxtextlength-2, "[\2%s\2] %s", u->arg2e, xd->desc);
  3491 + snprintf(tempstr2, maxtextlength-2, "[\2%s\2]%s%s", u->arg2e, gdata.announce_seperator, xd->desc);
3492 3492
3493 3493 backup = gnetwork;
3494 3494 for (ss=0; ss<gdata.networks_online; ss++) {
@@ -3536,7 +3536,7 @@ void a_cannounce(const userinput * const u)
3536 3536
3537 3537 tempstr = mycalloc(maxtextlength);
3538 3538 tempstr2 = mycalloc(maxtextlength);
3539   - snprintf(tempstr2, maxtextlength - 2, "[\2%s\2] %s", u->arg3e, xd->desc);
  3539 + snprintf(tempstr2, maxtextlength - 2, "[\2%s\2]%s%s", u->arg3e, gdata.announce_seperator, xd->desc);
3540 3540
3541 3541 backup = gnetwork;
3542 3542 for (ss=0; ss<gdata.networks_online; ss++) {
@@ -3578,7 +3578,7 @@ void a_sannounce(const userinput * const u)
3578 3578 a_respond(u, "Pack Info for Pack #%i:", num);
3579 3579
3580 3580 tempstr = mycalloc(maxtextlength);
3581   - snprintf(tempstr, maxtextlength-2, "\2%i\2 %s", num, xd->desc);
  3581 + snprintf(tempstr, maxtextlength-2, "\2%i\2%s%s", num, gdata.announce_seperator, xd->desc);
3582 3582
3583 3583 backup = gnetwork;
3584 3584 for (ss=0; ss<gdata.networks_online; ss++) {
1  src/dinoex_config.c
@@ -148,6 +148,7 @@ static int config_string_anzahl = 0;
148 148 static config_string_typ config_parse_string[] = {
149 149 {"admin_job_file", &gdata.admin_job_file, 0 },
150 150 {"adminpass", &gdata.adminpass, 4 },
  151 +{"announce_seperator", &gdata.announce_seperator, 5 },
151 152 {"autoadd_group", &gdata.autoadd_group, 0 },
152 153 {"autoadd_sort", &gdata.autoadd_sort, 0 },
153 154 {"autoaddann", &gdata.autoaddann, 0 },
3  src/dinoex_misc.c
@@ -350,6 +350,8 @@ static void global_defaults(void)
350 350
351 351 if (!gdata.group_seperator)
352 352 gdata.group_seperator = mystrdup(" ");
  353 + if (!gdata.announce_seperator)
  354 + gdata.announce_seperator = mystrdup(" ");
353 355
354 356 if (gdata.usenatip) {
355 357 backup = gnetwork;
@@ -1158,6 +1160,7 @@ static void free_config(void)
1158 1160 mydelete(gdata.trashcan_dir);
1159 1161 mydelete(gdata.xdccxmlfile);
1160 1162 mydelete(gdata.http_date);
  1163 + mydelete(gdata.announce_seperator);
1161 1164 }
1162 1165
1163 1166 #endif
1  src/iroffer_globals.h
@@ -203,6 +203,7 @@ char *logfile_messages;
203 203 char *trashcan_dir;
204 204 char *xdccxmlfile;
205 205 char *http_date;
  206 +char *announce_seperator;
206 207 long nomd5_start;
207 208 int need_voice;
208 209 int need_level;
1  src/iroffer_misc.c
@@ -2121,6 +2121,7 @@ void reinit_config_vars(void)
2121 2121 mydelete(gdata.trashcan_dir);
2122 2122 mydelete(gdata.xdccxmlfile);
2123 2123 mydelete(gdata.http_date);
  2124 + mydelete(gdata.announce_seperator);
2124 2125 gdata.transferminspeed = gdata.transfermaxspeed = 0.0;
2125 2126 gdata.overallmaxspeed = gdata.overallmaxspeeddayspeed = 0;
2126 2127 gdata.overallmaxspeeddaytimestart = gdata.overallmaxspeeddaytimeend = 0;
1  src/iroffer_utilities.c
@@ -1406,6 +1406,7 @@ void dumpgdata(void)
1406 1406 gdata_print_string(trashcan_dir);
1407 1407 gdata_print_string(xdccxmlfile);
1408 1408 gdata_print_string(http_date);
  1409 + gdata_print_string(announce_seperator);
1409 1410
1410 1411 gdata_print_int(need_voice);
1411 1412 gdata_print_int(need_level);

0 comments on commit abf40c8

Please sign in to comment.
Something went wrong with that request. Please try again.