projects
/
NeonServV5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added "all" argument to cmd_invitemeall to get invited to all channels (not only...
[NeonServV5.git]
/
src
/
tools.c
diff --git
a/src/tools.c
b/src/tools.c
index 51402a092467d40e6290b6caf4272d639215bef1..daedcd095ae19d28097f8814c1ef7fc362b7e433 100644
(file)
--- a/
src/tools.c
+++ b/
src/tools.c
@@
-1,4
+1,4
@@
-/* tools.c - NeonServ v5.
3
+/* tools.c - NeonServ v5.
6
* Copyright (C) 2011-2012 Philipp Kreil (pk910)
*
* This program is free software: you can redistribute it and/or modify
* Copyright (C) 2011-2012 Philipp Kreil (pk910)
*
* This program is free software: you can redistribute it and/or modify
@@
-204,7
+204,7
@@
char **table_end(struct Table *table) {
if(table->contents[row][col][i] == '\002') j++;
else if(table->contents[row][col][i] == '\003') {
j++;
if(table->contents[row][col][i] == '\002') j++;
else if(table->contents[row][col][i] == '\003') {
j++;
- for(k = 1; k < 2; k++) {
+ for(k = 1; k <
=
2; k++) {
if(isdigit(table->contents[row][col][i+k]))
j++;
else
if(isdigit(table->contents[row][col][i+k]))
j++;
else
@@
-212,7
+212,8
@@
char **table_end(struct Table *table) {
}
}
}
}
}
}
- }
+ } else if(table->col_flags[col] & TABLE_FLAG_COL_SKIP_NULL)
+ continue;
i -= j;
if(col < table->width-1) {
for(;i < table->maxwidth[col]; i++) {
i -= j;
if(col < table->width-1) {
for(;i < table->maxwidth[col]; i++) {
@@
-521,7
+522,7
@@
int isFakeHost(char *host) {
char *p1, *p2 = host;
//find the last dot to identify if the hostmask is a fake host
char *p1, *p2 = host;
//find the last dot to identify if the hostmask is a fake host
- while((p1 = str
str(p2, "."
))) {
+ while((p1 = str
chr(p2, '.'
))) {
p2 = p1 + 1;
}
//TLD database: http://www.iana.org/domains/root/db/
p2 = p1 + 1;
}
//TLD database: http://www.iana.org/domains/root/db/