thales-misc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Thales] Looking for testers


From: Hervé Rousseau
Subject: Re: [Thales] Looking for testers
Date: Wed, 30 Jun 2004 08:26:44 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; fr-FR; rv:1.7) Gecko/20040616

Trystan Scott Lee a écrit :

Greetings Lucas and Hervé

went to test the new CVS for the new NOQUIT stuff, but getting some compiler errors


address@hidden thales]$ make
Making all in src
make[1]: Entering directory `/home/trystan/thales/src'
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -I/usr/local/include/mysql -I/usr/include/mysql -Wall -c main.c
main.c: In function `main':
main.c:217: warning: implicit declaration of function `strnicmp'
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -I/usr/local/include/mysql -I/usr/include/mysql -Wall -c log.c gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -I/usr/local/include/mysql -I/usr/include/mysql -Wall -c conf.c
conf.c: In function `parse':
conf.c:162: warning: implicit declaration of function `stricmp'
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -I/usr/local/include/mysql -I/usr/include/mysql -Wall -c compat.c gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -I/usr/local/include/mysql -I/usr/include/mysql -Wall -c misc.c gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -I/usr/local/include/mysql -I/usr/include/mysql -Wall -c send.c gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -I/usr/local/include/mysql -I/usr/include/mysql -Wall -c sockutil.c gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -I/usr/local/include/mysql -I/usr/include/mysql -Wall -c messages.c
messages.c: In function `find_message':
messages.c:612: warning: implicit declaration of function `stricmp'
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -I/usr/local/include/mysql -I/usr/include/mysql -Wall -c process.c gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -I/usr/local/include/mysql -I/usr/include/mysql -Wall -c memory.c gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -I/usr/local/include/mysql -I/usr/include/mysql -Wall -c db.c gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -I/usr/local/include/mysql -I/usr/include/mysql -Wall -c actions.c gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -I/usr/local/include/mysql -I/usr/include/mysql -Wall -c hashlist.c gcc -g -O2 -I/usr/local/include/mysql -I/usr/include/mysql -Wall -o thales main.o log.o conf.o compat.o misc.o send.o sockutil.o messages.o process.o memory.o db.o actions.o hashlist.o -lmysqlclient -lm -lz
main.o: In function `main':
/home/trystan/thales/src/main.c:217: undefined reference to `strnicmp'
conf.o: In function `parse':
/home/trystan/thales/src/conf.c:162: undefined reference to `stricmp'
messages.o: In function `find_message':
/home/trystan/thales/src/messages.c:612: undefined reference to `stricmp'
collect2: ld returned 1 exit status
make[1]: *** [thales] Error 1
make[1]: Leaving directory `/home/trystan/thales/src'
make: *** [all-recursive] Error 1

Hi,

looks like the "reply-to:" header is missing.

I had the same problem, and could't get rid of it. So i made a little diff between 1.0 version and the cvs one (for the src directory)
Here it is...

Hope it works now, i tried with autotools and almost all command line parameters but it still doesn't work :)

Cheers,

--
Hervé Rousseau

diff -burN thales-1.0.original/src/actions.c thales-1.0/src/actions.c
--- thales-1.0.original/src/actions.c   2004-05-09 09:55:17.000000000 +0200
+++ thales-1.0/src/actions.c    2004-06-29 11:29:38.000000000 +0200
@@ -487,12 +487,16 @@
 void do_squit(char *server)
 {
        server = db_escape(server);
+       
+       /* We guess which users are now offline (for NOQUIT support) */
+       db_offlineusers(db_getserver(server));  
        if (ServerCacheTime)
        {
                db_query("UPDATE " TBL_SERV
                                        " SET online=\"N\", 
lastsplit=NOW(),linkedto=NULL WHERE servid=\"%d\"",
                                        db_getserver(server));
                db_cleanserver();
+
        }
        else
        {
diff -burN thales-1.0.original/src/db.c thales-1.0/src/db.c
--- thales-1.0.original/src/db.c        2004-05-09 09:55:20.000000000 +0200
+++ thales-1.0/src/db.c 2004-06-29 11:30:06.000000000 +0200
@@ -521,3 +521,21 @@
                }
        }
 }
+
+void db_offlineusers(int servid)
+{
+       MYSQL_RES *resptr2;
+       char **res2;
+       
+       /* We select users that went on the splitted server and send them to 
the appropritate functions */
+       db_query("SELECT nick, nickid FROM " TBL_USER " WHERE servid=\"%d\"", 
servid);
+       resptr2 = mysql_store_result(myptr);
+       while ((res2 = mysql_fetch_row(resptr2)))
+       {
+               char *nick = db_escape(res2[0]);
+               int nickid = atoi(res2[1]);
+               db_removenick(nick);
+               db_removefromchans(nickid);
+               free(nick);
+       }
+}
diff -burN thales-1.0.original/src/db.h thales-1.0/src/db.h
--- thales-1.0.original/src/db.h        2004-05-09 09:55:21.000000000 +0200
+++ thales-1.0/src/db.h 2004-06-29 11:29:05.000000000 +0200
@@ -46,6 +46,7 @@
 void db_close();
 void db_cleanserver();
 void db_cleanuser();
+void db_offlineusers();
 int db_getlusers(int type);
 #define LUSERS_USERS 1
 #define LUSERS_USERSINV 2
diff -burN thales-1.0.original/src/main.c thales-1.0/src/main.c
--- thales-1.0.original/src/main.c      2004-01-16 23:13:11.000000000 +0100
+++ thales-1.0/src/main.c       2004-06-29 11:35:31.000000000 +0200
@@ -178,13 +178,14 @@
        }
 #if defined(IRCD_UNREAL)
        send_cmd(NULL, "PROTOCTL NICKv2 SJOIN SJOIN2 SJ3");
+       send_cmd(NULL, "CAPAB NOQUIT");
 #endif
 #if defined(IRCD_HYBRID)
        send_cmd(NULL, "PASS %s :TS", RemotePassword);
        send_cmd(NULL, "CAPAB :HOPS TBURST");
 #elif defined (IRCD_BAHAMUT)
        send_cmd(NULL, "PASS %s :TS", RemotePassword);
-       send_cmd(NULL, "CAPAB TS3 SSJOIN NICKIP");
+       send_cmd(NULL, "CAPAB TS3 SSJOIN NICKIP NOQUIT");
 #elif defined (IRCD_IRCDRU)
        send_cmd(NULL, "PASS %s :TS", RemotePassword);
        send_cmd(NULL, "CAPAB TS3 SSJOIN 8BNCI NICKIP");

reply via email to

[Prev in Thread] Current Thread [Next in Thread]