[Ircphpstats-devel] [CVS] Module phpstats: Change committed
Status: Inactive
Brought to you by:
mrvolta
|
From: Mr. v. <mr...@us...> - 2003-04-27 10:59:10
|
Committer : volta <mr...@us...>
CVSROOT : /cvsroot/ircphpstats
Module : phpstats
Commit time: 2003-04-27 10:59:08 UTC
Modified files:
handlers/join.php
Log message:
Added support for join 0
---------------------- diff included ----------------------
Index: phpstats/handlers/join.php
diff -u phpstats/handlers/join.php:1.1 phpstats/handlers/join.php:1.2
--- phpstats/handlers/join.php:1.1 Sun Mar 9 13:51:29 2003
+++ phpstats/handlers/join.php Sun Apr 27 03:58:58 2003
@@ -5,7 +5,6 @@
E-mail: <vo...@gm...>
This program is free but copyrighted software; see the file LICENSE for
details.
- $Id: join.php,v 1.1 2003/03/09 21:51:29 mrvolta Exp $
*/
$b = 1;
@@ -13,11 +12,27 @@
$source => sender's numeric
$array[2] => channel name
$array[3] => timestamp (=createts)
+ or
+ $source => sender's numeric
+ $array[2] => 0
*/
// join is already a php function ....
function dojoin ($source,$array) {
global $channel,$client,$channelnumber;
// Create the channel, but without oping the founder
+ if ($array[2] == "0") {
+ foreach ($client[$source]->channels as $key => $val) {
+ $client[$source]->remchan($val);
+ $channel[$val]->partuser($source);
+ sql_partuser($val,$source);
+ if ($channel[$val]->isempty()) {
+ unset($channel[$val]);
+ sql_removechannel($val);
+ sql_channelnumber(--$channelnumber);
+ };
+ };
+ return;
+ };
if (!isset($channel[$array[2]])) {
$channel[$array[2]] = new channel($array[3],"",NULL,NULL,$source,"");
sql_createchannel($array[2],$channel[$array[2]]);
----------------------- End of diff -----------------------
|