cvs: php4 /ext/ircg ircg.c

From: Date: Fri, 12 Jan 2001 14:51:13 +0000
Subject: cvs: php4 /ext/ircg ircg.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-3570@lists.php.net to get a copy of this message
sas Fri Jan 12 06:51:13 2001 EDT Modified files: /php4/ext/ircg ircg.c Log: Add a format string which allows us to implement a transaction-like JS interface for large joins (many changes, one commit). Index: php4/ext/ircg/ircg.c diff -u php4/ext/ircg/ircg.c:1.17 php4/ext/ircg/ircg.c:1.18 --- php4/ext/ircg/ircg.c:1.17 Fri Jan 12 06:27:27 2001 +++ php4/ext/ircg/ircg.c Fri Jan 12 06:51:12 2001 @@ -45,6 +45,7 @@ FMT_MSG_TOPIC, FMT_MSG_ERROR, FMT_MSG_FATAL_ERROR, + FMT_MSG_JOIN_LIST_END, NO_FMTS }; @@ -86,7 +87,8 @@ "%t was kicked by %f from %c (%m)<br />", "%f changes topic on %c to %m<br />", "Error: %m<br />", - "Fatal Error: %m<br />" + "Fatal Error: %m<br />", + "" }; #define MSG(conn, type) \ @@ -383,6 +385,11 @@ "", &m); msg_send(conn, &m); } + + m.len = 0; + format_msg(MSG(conn, FMT_MSG_JOIN_LIST_END), channel, NULL, NULL, + "", &m); + msg_send(conn, &m); } static void new_topic(irconn_t *ircc, const char *channel, smart_str *who, smart_str *topic, void *dummy)

« previous php.cvs (#3570) next »