Anonymous avatar Anonymous committed b465046

Version 0.3.2.

Comments (0)

Files changed (6)

+2001-10-14  Joel Rosdahl  <joel@rosdahl.net>
+
+	* irclib.py (_parse_modes): Fixed problem found by Tom Morton: the
+	mode parsing code bailed out if a unary mode character didn't have
+	a corresponding argument.
+
+	* irclib.py (_alpha): Fixed bug found by Tom Morton: w was missing
+	in the alphabet used by irc_lower().
+
+	* ircbot.py: Removed redundant import of is_channel.
+
+	* servermap: Clarified copyright and license.
+
+	* irccat: Ditto.
+
+	* irccat2: Ditto.
+
 2000-12-11  Joel Rosdahl  <joel@rosdahl.net>
 
 	* Released version 0.3.1.
 	* Makefile (doc): Make documentation.
 
 	* irclib.py: Updated documentation.
-	
+
 	* irclib.py (is_channel): Included "!" as channel prefix.
 
 2000-10-02  Joel Rosdahl  <joel@rosdahl.net>
 
 	* Released version 0.2.3.
-	
+
 	* irclib.py (ServerConnection.connect): Make socket.connect() work
 	for Python >= 1.6.
 
 
 from irclib import SimpleIRCClient
 from irclib import nm_to_n, irc_lower, all_events
-from irclib import parse_channel_modes, is_channel, is_channel
+from irclib import parse_channel_modes, is_channel
 from irclib import ServerConnectionError
 
 class SingleServerIRCBot(SimpleIRCClient):
 #
 # Example program using irclib.py.
 #
+# This program is free without restrictions; do anything you like with
+# it.
+#
 # Joel Rosdahl <joel@rosdahl.net>
 
 import irclib
 #
 # Example program using irclib.py.
 #
+# This program is free without restrictions; do anything you like with
+# it.
+#
 # Joel Rosdahl <joel@rosdahl.net>
 
 import irclib
     r = re.compile(mask, re.IGNORECASE)
     return r.match(nick)
 
-_alpha = "abcdefghijklmnopqrstuvxyz"
+_alpha = "abcdefghijklmnopqrstuvwxyz"
 _special = "-[]\\`^{}"
 nick_characters = _alpha + string.upper(_alpha) + string.digits + _special
 _ircstring_translation = string.maketrans(string.upper(_alpha) + "[]\\^",
         elif ch == " ":
             collecting_arguments = 1
         elif ch in unary_modes:
-            modes.append([sign, ch, args[arg_count]])
-            arg_count = arg_count + 1
+            if len(args) >= arg_count + 1:
+                modes.append([sign, ch, args[arg_count]])
+                arg_count = arg_count + 1
+            else:
+                modes.append([sign, ch, None])
         else:
             modes.append([sign, ch, None])
     return modes
 #
 # Example program using irclib.py.
 #
+# Copyright (C) 1999, 2000 Joel Rosdahl
+# 
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#        
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+# 
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+#
 # Joel Rosdahl <joel@rosdahl.net>
 #
 # servermap connects to an IRC server and finds out what other IRC
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.