Skip to content
This repository has been archived by the owner on Oct 11, 2021. It is now read-only.

Commit

Permalink
Version 0.3.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrosdahl committed Feb 16, 2002
1 parent a86aa4c commit 96de577
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 8 deletions.
21 changes: 19 additions & 2 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
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.
Expand Down Expand Up @@ -58,13 +75,13 @@
* 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.

Expand Down
4 changes: 2 additions & 2 deletions ircbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#
# Joel Rosdahl <joel@rosdahl.net>
#
# $Id: ircbot.py,v 1.4 2002/02/16 22:10:29 jrosdahl Exp $
# $Id: ircbot.py,v 1.5 2002/02/16 22:11:52 jrosdahl Exp $

"""ircbot -- Simple IRC bot library.
Expand All @@ -30,7 +30,7 @@

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):
Expand Down
3 changes: 3 additions & 0 deletions irccat
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
#
# Example program using irclib.py.
#
# This program is free without restrictions; do anything you like with
# it.
#
# Joel Rosdahl <joel@rosdahl.net>

import irclib
Expand Down
3 changes: 3 additions & 0 deletions irccat2
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
#
# Example program using irclib.py.
#
# This program is free without restrictions; do anything you like with
# it.
#
# Joel Rosdahl <joel@rosdahl.net>

import irclib
Expand Down
11 changes: 7 additions & 4 deletions irclib.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#
# Joel Rosdahl <joel@rosdahl.net>
#
# $Id: irclib.py,v 1.8 2002/02/16 22:10:29 jrosdahl Exp $
# $Id: irclib.py,v 1.9 2002/02/16 22:11:52 jrosdahl Exp $

"""irclib -- Internet Relay Chat (IRC) protocol client library.
Expand Down Expand Up @@ -935,7 +935,7 @@ def mask_matches(nick, mask):
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) + "[]\\^",
Expand Down Expand Up @@ -1091,8 +1091,11 @@ def _parse_modes(mode_string, unary_modes=""):
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
Expand Down
16 changes: 16 additions & 0 deletions servermap
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,22 @@
#
# 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
Expand Down

0 comments on commit 96de577

Please sign in to comment.