1
0
Fork 0
mirror of git://git.psyced.org/git/psyced synced 2024-08-15 03:25:10 +00:00

_flag_enable_module_microblogging

This commit is contained in:
psyc://psyced.org/~lynX 2010-02-21 09:36:11 +01:00
parent 249ecc4237
commit f67c55a2e8
7 changed files with 34 additions and 14 deletions

View file

@ -2,7 +2,7 @@
#include <net.h>
// legal nickname/placename test..
varargs string legal_name(string name, int place) {
varargs string legal_name(string name, int isPlace) {
int i;
string n = name;
@ -27,10 +27,11 @@ varargs string legal_name(string name, int place) {
return 0;
}
#ifdef _flag_enable_module_microblogging
string nick;
if (place && sscanf(name, "~%s#updates", nick))
if (isPlace && sscanf(name, "~%s#updates", nick))
n = nick;
#endif
string chars = "\
abcdefghijklmnopqrstuvwxyz\
ABCDEFGHIJKLMNOPQRSTUVWXYZ\
@ -43,7 +44,7 @@ ABCDEFGHIJKLMNOPQRSTUVWXYZ\
return 0;
}
}
return name;
return name; // we used to return n here instead..
}
array(string) legal_password(string pw, string nick) {