added some code
[NextIRCd.git] / src / ircd_users.c
index ef0bc82b231ec8305c011748951bde5770af449b..f3fcbb5a635e59edc9485939cb4ca6bfbe46d730 100644 (file)
@@ -14,6 +14,9 @@
  * You should have received a copy of the GNU General Public License 
  * along with this program. If not, see <http://www.gnu.org/licenses/>. 
  */
+
+#include <time.h>
+
 #include "struct_user.h"
 
 struct UserDictEntry {
@@ -26,9 +29,16 @@ struct UserDict {
        struct UserDictEntry *users[65536]; // 2^16  (first 16 bit of nickhash as identifier)
 };
 
-
 void find_user_by_nick(char *nick) {
        //calculate checksum
        //search in UserDict
        //ask trusted server multicast
 }
+
+int is_nick_valid(char *nick) {
+       return 1;
+}
+
+int is_ident_valid(char *ident) {
+       return 1;
+}