summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordane dane@31f1291d-b8d6-0310-a050-a5561fc1590b <dane dane@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2006-03-01 15:20:15 +0000
committerdane dane@31f1291d-b8d6-0310-a050-a5561fc1590b <dane dane@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2006-03-01 15:20:15 +0000
commit902eedeb6f4b91dd652d1b66df7f9e18b58f8779 (patch)
treeb31694490d9eaf4f3ad17f9aeed4d967710197c2
parent4c6ce41202b4249d841eaa2ec4223a10c06201d1 (diff)
BUILD : 1.7.13 (986) BUGS : n/a NOTES : Propagated CHAN_X_INVALID to all languages and Changes.lang
git-svn-id: svn://svn.anope.org/anope/trunk@986 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@711 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r--Changes.lang1
-rw-r--r--lang/cat.l4
-rw-r--r--lang/de.l4
-rw-r--r--lang/es.l4
-rw-r--r--lang/fr.l4
-rw-r--r--lang/gr.l4
-rw-r--r--lang/hun.l4
-rw-r--r--lang/it.l4
-rw-r--r--lang/nl.l4
-rw-r--r--lang/pl.l4
-rw-r--r--lang/pt.l4
-rw-r--r--lang/ru.l4
-rw-r--r--lang/tr.l4
-rw-r--r--src/actions.c14
-rw-r--r--src/channels.c30
-rw-r--r--src/slist.c26
-rw-r--r--src/users.c7
-rw-r--r--version.log6
18 files changed, 93 insertions, 39 deletions
diff --git a/Changes.lang b/Changes.lang
index bf5750f82..fb0b32afc 100644
--- a/Changes.lang
+++ b/Changes.lang
@@ -1,6 +1,7 @@
Anope Version S V N
--------------------
*** New Strings:
+ CHAN_X_INVALID
*** Mod Strings:
diff --git a/lang/cat.l b/lang/cat.l
index a7b7c73b0..e97e9b5d6 100644
--- a/lang/cat.l
+++ b/lang/cat.l
@@ -1002,6 +1002,10 @@ CHAN_NOT_ALLOWED_TO_JOIN
No estas autoritzat a estar en aquest canal.
# REGISTER responses
+CHAN_X_INVALID
+ Channel %s is not a valid channel.
+
+# REGISTER responses
CHAN_REGISTER_SYNTAX
REGISTER canal clau descripció
CHAN_REGISTER_DISABLED
diff --git a/lang/de.l b/lang/de.l
index fa3e2b20f..1c891c26b 100644
--- a/lang/de.l
+++ b/lang/de.l
@@ -1015,6 +1015,10 @@ CHAN_NOT_ALLOWED_TO_JOIN
Dir ist es nicht erlaubt, diesen Channel zu betreten.
# REGISTER responses
+CHAN_X_INVALID
+ Channel %s is not a valid channel.
+
+# REGISTER responses
CHAN_REGISTER_SYNTAX
REGISTER Channel Passwort Beschreibung
CHAN_REGISTER_DISABLED
diff --git a/lang/es.l b/lang/es.l
index 31fd7aced..af1c00f0d 100644
--- a/lang/es.l
+++ b/lang/es.l
@@ -1002,6 +1002,10 @@ CHAN_NOT_ALLOWED_TO_JOIN
No estas autorizado a estar en este canal.
# REGISTER responses
+CHAN_X_INVALID
+ Channel %s is not a valid channel.
+
+# REGISTER responses
CHAN_REGISTER_SYNTAX
REGISTER canal clave descripcion
CHAN_REGISTER_DISABLED
diff --git a/lang/fr.l b/lang/fr.l
index da1602499..f8b9e68d6 100644
--- a/lang/fr.l
+++ b/lang/fr.l
@@ -1012,6 +1012,10 @@ CHAN_NOT_ALLOWED_TO_JOIN
Vous n'êtes pas autorisé à être sur ce channel.
# REGISTER responses
+CHAN_X_INVALID
+ Channel %s is not a valid channel.
+
+# REGISTER responses
CHAN_REGISTER_SYNTAX
REGISTER canal motdepasse description
CHAN_REGISTER_DISABLED
diff --git a/lang/gr.l b/lang/gr.l
index 6280fca8f..21f018503 100644
--- a/lang/gr.l
+++ b/lang/gr.l
@@ -1000,6 +1000,10 @@ CHAN_NOT_ALLOWED_TO_JOIN
Äåí Ý÷åéò ôçí Üäåéá íá åßóáé óå áõôü ôï êáíÜëé.
# REGISTER responses
+CHAN_X_INVALID
+ Channel %s is not a valid channel.
+
+# REGISTER responses
CHAN_REGISTER_SYNTAX
REGISTER channel password description
CHAN_REGISTER_DISABLED
diff --git a/lang/hun.l b/lang/hun.l
index 5e0d4b7d4..7dc1ca438 100644
--- a/lang/hun.l
+++ b/lang/hun.l
@@ -993,6 +993,10 @@ CHAN_NOT_ALLOWED_TO_JOIN
Nem tartózkodhatsz ezen a csatornán.
# REGISTER válaszok
+CHAN_X_INVALID
+ Channel %s is not a valid channel.
+
+# REGISTER responses
CHAN_REGISTER_SYNTAX
REGISTER #szoba jelszó leírás
CHAN_REGISTER_DISABLED
diff --git a/lang/it.l b/lang/it.l
index f920e069b..ebc33f84e 100644
--- a/lang/it.l
+++ b/lang/it.l
@@ -989,6 +989,10 @@ CHAN_NOT_ALLOWED_TO_JOIN
Non hai il permesso di stare su questo canale.
# REGISTER responses
+CHAN_X_INVALID
+ Channel %s is not a valid channel.
+
+# REGISTER responses
CHAN_REGISTER_SYNTAX
REGISTER canale password descrizione
CHAN_REGISTER_DISABLED
diff --git a/lang/nl.l b/lang/nl.l
index c7d9e741c..493aa3e9f 100644
--- a/lang/nl.l
+++ b/lang/nl.l
@@ -997,6 +997,10 @@ CHAN_NOT_ALLOWED_TO_JOIN
Je hebt geen toestemming om op dit kanaal te zijn.
# REGISTER responses
+CHAN_X_INVALID
+ Channel %s is not a valid channel.
+
+# REGISTER responses
CHAN_REGISTER_SYNTAX
REGISTER kanaal wachtwoord beschrijving
CHAN_REGISTER_DISABLED
diff --git a/lang/pl.l b/lang/pl.l
index bb2aac890..26bb8f128 100644
--- a/lang/pl.l
+++ b/lang/pl.l
@@ -1070,6 +1070,10 @@ CHAN_NOT_ALLOWED_TO_JOIN
Nie masz pozwolenia, aby przebywaæ na tym kanale.
# REGISTER responses
+CHAN_X_INVALID
+ Channel %s is not a valid channel.
+
+# REGISTER responses
CHAN_REGISTER_SYNTAX
REGISTER kana³ has³o opis
CHAN_REGISTER_DISABLED
diff --git a/lang/pt.l b/lang/pt.l
index 63bdd2224..b9d5eac6f 100644
--- a/lang/pt.l
+++ b/lang/pt.l
@@ -1000,6 +1000,10 @@ CHAN_NOT_ALLOWED_TO_JOIN
Você não tem permissão para permanecer neste canal.
# REGISTER responses
+CHAN_X_INVALID
+ Channel %s is not a valid channel.
+
+# REGISTER responses
CHAN_REGISTER_SYNTAX
REGISTER canal senha descrição
CHAN_REGISTER_DISABLED
diff --git a/lang/ru.l b/lang/ru.l
index 5eddbb9b1..23eddc8fe 100644
--- a/lang/ru.l
+++ b/lang/ru.l
@@ -996,6 +996,10 @@ CHAN_NOT_ALLOWED_TO_JOIN
Âàì íå ðàçðåøåíî íàõîäèòüñÿ íà ýòîì êàíàëå.
# REGISTER responses
+CHAN_X_INVALID
+ Channel %s is not a valid channel.
+
+# REGISTER responses
CHAN_REGISTER_SYNTAX
REGISTER #êàíàë ïàðîëü îïèñàíèå
CHAN_REGISTER_DISABLED
diff --git a/lang/tr.l b/lang/tr.l
index 6deca3831..2701990f6 100644
--- a/lang/tr.l
+++ b/lang/tr.l
@@ -1006,6 +1006,10 @@ CHAN_NOT_ALLOWED_TO_JOIN
Bu kanalda bulunmanýza müsaade yok.
# REGISTER responses
+CHAN_X_INVALID
+ Channel %s is not a valid channel.
+
+# REGISTER responses
CHAN_REGISTER_SYNTAX
REGISTER kanaladý þifre açýklama
CHAN_REGISTER_DISABLED
diff --git a/src/actions.c b/src/actions.c
index c9ca020a0..50ff90981 100644
--- a/src/actions.c
+++ b/src/actions.c
@@ -168,14 +168,14 @@ void common_unban(ChannelInfo * ci, char *nick)
for the function. but won't prevent thus from clearing out
the bans against an IP address since the first would fail and
the second would match - TSL
- */
+ */
if (!matchfound) {
- if (match_userip(bans[i], u, host)) {
- anope_cmd_mode(whosends(ci), ci->name, "-b %s",
- bans[i]);
- av[2] = bans[i];
- do_cmode(whosends(ci), 3, av);
- }
+ if (match_userip(bans[i], u, host)) {
+ anope_cmd_mode(whosends(ci), ci->name, "-b %s",
+ bans[i]);
+ av[2] = bans[i];
+ do_cmode(whosends(ci), 3, av);
+ }
}
}
matchfound = 0;
diff --git a/src/channels.c b/src/channels.c
index b3b5e2b4e..dacf98895 100644
--- a/src/channels.c
+++ b/src/channels.c
@@ -551,9 +551,11 @@ void do_join(const char *source, int ac, char **av)
while (c) {
nextc = c->next;
channame = sstrdup(c->chan->name);
- send_event(EVENT_PART_CHANNEL, 3, EVENT_START, user->nick, channame);
+ send_event(EVENT_PART_CHANNEL, 3, EVENT_START, user->nick,
+ channame);
chan_deluser(user, c->chan);
- send_event(EVENT_PART_CHANNEL, 3, EVENT_STOP, user->nick, channame);
+ send_event(EVENT_PART_CHANNEL, 3, EVENT_STOP, user->nick,
+ channame);
free(channame);
free(c);
c = nextc;
@@ -1111,19 +1113,19 @@ void do_cmode(const char *source, int ac, char **av)
if (UseTS6 && ircd->ts6) {
if (*av[0] == '#' || *av[0] == '&') {
- if (debug) {
- alog("debug: Before TS6 swap: do_cmode() chan %s : mode %s : extra %s", av[1], av[2], av[3]);
- }
- av[0] = (ac >= 2 ? sstrdup(av[1]) : NULL);
- av[1] = (ac >= 3 ? sstrdup(av[2]) : NULL);
- av[2] = (ac >= 4 ? sstrdup(av[3]) : NULL);
- if (debug) {
- alog("debug: After TS swap: do_cmode() chan %s : mode %s : extra %s", av[0], av[1], av[2]);
- }
+ if (debug) {
+ alog("debug: Before TS6 swap: do_cmode() chan %s : mode %s : extra %s", av[1], av[2], av[3]);
+ }
+ av[0] = (ac >= 2 ? sstrdup(av[1]) : NULL);
+ av[1] = (ac >= 3 ? sstrdup(av[2]) : NULL);
+ av[2] = (ac >= 4 ? sstrdup(av[3]) : NULL);
+ if (debug) {
+ alog("debug: After TS swap: do_cmode() chan %s : mode %s : extra %s", av[0], av[1], av[2]);
+ }
} else {
- if (debug) {
- alog("debug: TS swap not needed: do_cmode() chan %s : mode %s : extra %s", av[0], av[1], av[2]);
- }
+ if (debug) {
+ alog("debug: TS swap not needed: do_cmode() chan %s : mode %s : extra %s", av[0], av[1], av[2]);
+ }
}
}
diff --git a/src/slist.c b/src/slist.c
index a154cc47e..0db856717 100644
--- a/src/slist.c
+++ b/src/slist.c
@@ -153,21 +153,21 @@ int slist_delete_range(SList * slist, char *range, slist_delcheckcb_t cb,
if (!slist->list[i - 1])
continue;
- /* copy this off the stack for safety's sake --nenolod */
- VA_COPY(preserve, args);
+ /* copy this off the stack for safety's sake --nenolod */
+ VA_COPY(preserve, args);
if (cb && !cb(slist, slist->list[i - 1], preserve)) {
- va_end(preserve);
+ va_end(preserve);
return -1;
- }
+ }
- /* if it's to be freed, lets free it */
+ /* if it's to be freed, lets free it */
if (slist->opts && slist->opts->freeitem)
slist->opts->freeitem(slist, slist->list[i - 1]);
slist->list[i - 1] = NULL;
- /* and release the copied list */
- va_end(preserve);
+ /* and release the copied list */
+ va_end(preserve);
count++;
}
@@ -215,14 +215,14 @@ int slist_enum(SList * slist, char *range, slist_enumcb_t cb, ...)
continue;
}
- /* copy off stack for safety */
- VA_COPY(preserve, args);
+ /* copy off stack for safety */
+ VA_COPY(preserve, args);
res = cb(slist, i + 1, slist->list[i], preserve);
if (res < 0) {
- va_end(preserve);
+ va_end(preserve);
break;
- }
+ }
/* and release our copy */
va_end(preserve);
@@ -250,8 +250,8 @@ int slist_enum(SList * slist, char *range, slist_enumcb_t cb, ...)
continue;
}
- /* copy off stack for safety */
- VA_COPY(preserve, args);
+ /* copy off stack for safety */
+ VA_COPY(preserve, args);
res = cb(slist, i, slist->list[i - 1], preserve);
if (res < 0) {
diff --git a/src/users.c b/src/users.c
index 5d1583b25..228a3fec1 100644
--- a/src/users.c
+++ b/src/users.c
@@ -656,10 +656,9 @@ User *do_nick(const char *source, char *nick, char *username, char *host,
/* An old user changing nicks. */
if (UseTS6)
user = find_byuid(source);
- if (!user) {
- user = finduser(source);
- }
- else
+ if (!user) {
+ user = finduser(source);
+ } else
user = finduser(source);
if (!user) {
diff --git a/version.log b/version.log
index dd02c2596..0532e0b6a 100644
--- a/version.log
+++ b/version.log
@@ -9,10 +9,14 @@ VERSION_MAJOR="1"
VERSION_MINOR="7"
VERSION_PATCH="13"
VERSION_EXTRA="-svn"
-VERSION_BUILD="985"
+VERSION_BUILD="986"
# $Log$
#
+# BUILD : 1.7.13 (986)
+# BUGS : n/a
+# NOTES : Propagated CHAN_X_INVALID to all languages and Changes.lang
+#
# BUILD : 1.7.13 (985)
# BUGS :
# NOTES : added new langstring CHAN_X_INVALID