SOURCES: eventum-irc-config.patch - check for empty password when ...

glen glen at pld-linux.org
Sat Sep 17 16:51:13 CEST 2005


Author: glen                         Date: Sat Sep 17 14:51:13 2005 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- check for empty password when connecting

---- Files affected:
SOURCES:
   eventum-irc-config.patch (1.7 -> 1.8) 

---- Diffs:

================================================================
Index: SOURCES/eventum-irc-config.patch
diff -u SOURCES/eventum-irc-config.patch:1.7 SOURCES/eventum-irc-config.patch:1.8
--- SOURCES/eventum-irc-config.patch:1.7	Sat Sep 17 16:32:17 2005
+++ SOURCES/eventum-irc-config.patch	Sat Sep 17 16:51:08 2005
@@ -1,5 +1,5 @@
 --- eventum-1.6.1/misc/irc/bot.php.orig	2005-09-17 17:28:04.000000000 +0300
-+++ eventum-1.6.1/misc/irc/bot.php	2005-09-17 17:28:53.000000000 +0300
++++ eventum-1.6.1/misc/irc/bot.php	2005-09-17 17:49:09.000000000 +0300
 @@ -27,8 +27,9 @@
  //
  // @(#) $Id$
@@ -54,3 +54,25 @@
      }
      
      
+@@ -410,14 +408,16 @@
+ $irc->registerActionhandler(SMARTIRC_TYPE_QUERY, '^!?list-quarantined', $bot, 'listQuarantinedIssues');
+ 
+ $irc->connect($irc_server_hostname, $irc_server_port);
+-if (!empty($username)) {
+-    $irc->login($nickname, $realname, 0, $username, $password);
+-} else {
++if (empty($username)) {
+     $irc->login($nickname, $realname);
++} elseif (empty($password) {
++    $irc->login($nickname, $realname, 0, $username);
++} else {
++    $irc->login($nickname, $realname, 0, $username, $password);
+ }
+ $irc->listen();
+ $irc->disconnect();
+ 
+ // release the lock
+ Lock::release('irc_bot');
+-?>
+\ No newline at end of file
++?>
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/eventum-irc-config.patch?r1=1.7&r2=1.8&f=u




More information about the pld-cvs-commit mailing list