projects
/
NeonServV5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Another year is about to end... So we have to update these damn copyright information :P
[NeonServV5.git]
/
src
/
cmd_neonserv_chanservsync.c
diff --git
a/src/cmd_neonserv_chanservsync.c
b/src/cmd_neonserv_chanservsync.c
index ea4712e725b64eb0b1fe0ffa4adf503c4db09073..78967d45bc0f0e59d8791d5ead60d3d74511e24f 100644
(file)
--- a/
src/cmd_neonserv_chanservsync.c
+++ b/
src/cmd_neonserv_chanservsync.c
@@
-1,5
+1,5
@@
-/* cmd_neonserv_chanservsync.c - NeonServ v5.
2
- * Copyright (C) 2011 Philipp Kreil (pk910)
+/* cmd_neonserv_chanservsync.c - NeonServ v5.
3
+ * Copyright (C) 2011
-2012
Philipp Kreil (pk910)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@
-130,7
+130,7
@@
static void neonserv_cmd_chanservsync_notice_listener(struct UserNode *user, str
*q = '\0';
do {
q++;
*q = '\0';
do {
q++;
- } while(*q == ' ');
+ } while(*q == ' '
|| *q == '-'
);
if(*p) {
tokens[tokensPos++] = p;
}
if(*p) {
tokens[tokensPos++] = p;
}
@@
-152,8
+152,13
@@
static void neonserv_cmd_chanservsync_notice_listener(struct UserNode *user, str
} else
return;
} else if(tokensPos >= 2) {
} else
return;
} else if(tokensPos >= 2) {
- caccess = atoi(tokens[0]);
- username = tokens[1];
+ if(atoi(tokens[0]) > 0) {
+ caccess = atoi(tokens[0]);
+ username = tokens[1];
+ } else {
+ caccess = atoi(tokens[1]);
+ username = tokens[0];
+ }
} else
return;
if(caccess < 1 || caccess > 500) return;
} else
return;
if(caccess < 1 || caccess > 500) return;