Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

- announce_separator

  • Loading branch information...
commit abf40c800fdf0064502035afec7f4074b05d9ef1 1 parent 7def377
dm authored
View
3  LIESMICH.modDinoex
@@ -3,6 +3,9 @@ Aktuelle Version auf: http://iroffer.dinoex.net/
Ab Version 3.3:
---------------
+212) announce_seperator
+ Zeichen zwischen Pack Nummer und Name beim Announce.
+
bugfix: Transfer Complete
versions affected: 3.0 - 3.2
Zeige KB richtig an.
View
3  README.modDinoex
@@ -3,6 +3,9 @@ Aktuelle Version auf: http://iroffer.dinoex.net/
With Version 3.3:
-----------------
+212) announce_seperator (inspired by dondieschotte)
+ printed between pack number and name on annoucne
+
bugfix: Transfer Complete
versions affected: 3.0 - 3.2
show size of transfer in kb instead of bytes.
View
1  THANKS
@@ -234,6 +234,7 @@ dondieschotte
option "nickserv_pass" per network
report window resize bug
report "Transfer Complete" bug
+ option "announce_separator"
dsd
admin command "autoadd"
View
1  TODO
@@ -65,7 +65,6 @@ Page last modified: 09/01/04
Short Term Features:
1096 autoadd_group with predefined matchings
- 1097 short-announce seperator
Long Term Features:
1008 use text or xml for statefile
View
7 beispiel.config
@@ -541,6 +541,13 @@ adddir_exclude *.md5
#autoaddann_short
##############################################################################
+### - announce seperator - ###
+### Zeichen zwischen Pack Nummer und Name beim Announce. ###
+### Default: space ###
+#announce_seperator " "
+announce_seperator " - "
+
+##############################################################################
### - auto add time - ###
### Zeit in Sekunden nach der der Bot nach neuen Files im Verzeichnis ###
### autoadd_dir sucht. Standardwert 0 d.h. nicht aktiv. ###
View
5 de.txt
@@ -1599,7 +1599,6 @@
1638 "Already Queued %s for Pack %i!"
1639 "Queueing %s for Pack %i"
1640 "** %s"
-1641 "[\2%s\2] %s"
1642 "%s - /MSG %s XDCC SEND %i"
1643 "Announced [%s] - %s"
1645 "A A A A A %s"
@@ -1712,7 +1711,6 @@
1754 "xx_trno %s\n"
1755 "SANNOUNCE"
1756 "Kurze ANNOUNCE f�r Paket <n> in allen Channels"
-1757 "\2%i\2 %s"
1758 "A A A A A sannounce %i"
1759 "autoaddann_short"
1760 "[MD5]: Pack %d: Cant Access Offered File '%s': %s"
@@ -2128,3 +2126,6 @@
2182 "curl_multi_fdset() = %d"
2183 "curl_multi_remove_handle() = %d"
2184 "curl_multi_perform() = %d"
+2185 "[\2%s\2]%s%s"
+2186 "\2%i\2%s%s"
+2187 "announce_seperator"
View
5 en.txt
@@ -1599,7 +1599,6 @@
1638 "Already Queued %s for Pack %i!"
1639 "Queueing %s for Pack %i"
1640 "** %s"
-1641 "[\2%s\2] %s"
1642 "%s - /MSG %s XDCC SEND %i"
1643 "Announced [%s] - %s"
1645 "A A A A A %s"
@@ -1712,7 +1711,6 @@
1754 "xx_trno %s\n"
1755 "SANNOUNCE"
1756 "Short ANNOUNCE <n> <name> in all joined channels"
-1757 "\2%i\2 %s"
1758 "A A A A A sannounce %i"
1759 "autoaddann_short"
1760 "[MD5]: Pack %d: Cant Access Offered File '%s': %s"
@@ -2128,3 +2126,6 @@
2182 "curl_multi_fdset() = %d"
2183 "curl_multi_remove_handle() = %d"
2184 "curl_multi_perform() = %d"
+2185 "[\2%s\2]%s%s"
+2186 "\2%i\2%s%s"
+2187 "announce_seperator"
View
7 sample.config
@@ -520,6 +520,13 @@ noduplicatefiles
#autoaddann_short
##############################################################################
+### - announce seperator - ###
+### printed between pack number and name on annoucne. ###
+### Default: space ###
+#announce_seperator " "
+announce_seperator " - "
+
+##############################################################################
### - auto add time - ###
### Time in seconds when the bot checks for new files in autoadd_dir. ###
### Default: 0 = disabled. ###
View
6 src/dinoex_admin.c
@@ -3488,7 +3488,7 @@ void a_announce(const userinput * const u)
tempstr = mycalloc(maxtextlength);
tempstr2 = mycalloc(maxtextlength);
- snprintf(tempstr2, maxtextlength-2, "[\2%s\2] %s", u->arg2e, xd->desc);
+ snprintf(tempstr2, maxtextlength-2, "[\2%s\2]%s%s", u->arg2e, gdata.announce_seperator, xd->desc);
backup = gnetwork;
for (ss=0; ss<gdata.networks_online; ss++) {
@@ -3536,7 +3536,7 @@ void a_cannounce(const userinput * const u)
tempstr = mycalloc(maxtextlength);
tempstr2 = mycalloc(maxtextlength);
- snprintf(tempstr2, maxtextlength - 2, "[\2%s\2] %s", u->arg3e, xd->desc);
+ snprintf(tempstr2, maxtextlength - 2, "[\2%s\2]%s%s", u->arg3e, gdata.announce_seperator, xd->desc);
backup = gnetwork;
for (ss=0; ss<gdata.networks_online; ss++) {
@@ -3578,7 +3578,7 @@ void a_sannounce(const userinput * const u)
a_respond(u, "Pack Info for Pack #%i:", num);
tempstr = mycalloc(maxtextlength);
- snprintf(tempstr, maxtextlength-2, "\2%i\2 %s", num, xd->desc);
+ snprintf(tempstr, maxtextlength-2, "\2%i\2%s%s", num, gdata.announce_seperator, xd->desc);
backup = gnetwork;
for (ss=0; ss<gdata.networks_online; ss++) {
View
1  src/dinoex_config.c
@@ -148,6 +148,7 @@ static int config_string_anzahl = 0;
static config_string_typ config_parse_string[] = {
{"admin_job_file", &gdata.admin_job_file, 0 },
{"adminpass", &gdata.adminpass, 4 },
+{"announce_seperator", &gdata.announce_seperator, 5 },
{"autoadd_group", &gdata.autoadd_group, 0 },
{"autoadd_sort", &gdata.autoadd_sort, 0 },
{"autoaddann", &gdata.autoaddann, 0 },
View
3  src/dinoex_misc.c
@@ -350,6 +350,8 @@ static void global_defaults(void)
if (!gdata.group_seperator)
gdata.group_seperator = mystrdup(" ");
+ if (!gdata.announce_seperator)
+ gdata.announce_seperator = mystrdup(" ");
if (gdata.usenatip) {
backup = gnetwork;
@@ -1158,6 +1160,7 @@ static void free_config(void)
mydelete(gdata.trashcan_dir);
mydelete(gdata.xdccxmlfile);
mydelete(gdata.http_date);
+ mydelete(gdata.announce_seperator);
}
#endif
View
1  src/iroffer_globals.h
@@ -203,6 +203,7 @@ char *logfile_messages;
char *trashcan_dir;
char *xdccxmlfile;
char *http_date;
+char *announce_seperator;
long nomd5_start;
int need_voice;
int need_level;
View
1  src/iroffer_misc.c
@@ -2121,6 +2121,7 @@ void reinit_config_vars(void)
mydelete(gdata.trashcan_dir);
mydelete(gdata.xdccxmlfile);
mydelete(gdata.http_date);
+ mydelete(gdata.announce_seperator);
gdata.transferminspeed = gdata.transfermaxspeed = 0.0;
gdata.overallmaxspeed = gdata.overallmaxspeeddayspeed = 0;
gdata.overallmaxspeeddaytimestart = gdata.overallmaxspeeddaytimeend = 0;
View
1  src/iroffer_utilities.c
@@ -1406,6 +1406,7 @@ void dumpgdata(void)
gdata_print_string(trashcan_dir);
gdata_print_string(xdccxmlfile);
gdata_print_string(http_date);
+ gdata_print_string(announce_seperator);
gdata_print_int(need_voice);
gdata_print_int(need_level);
Please sign in to comment.
Something went wrong with that request. Please try again.