Changed nick/user/host of server hostmask to be the hostmask itself. Also disabled _ircmsg import for the time being.

This commit is contained in:
Jeremy Fincher 2003-08-12 19:12:44 +00:00
parent 2a4c2ea185
commit 2dd5a522d3

View File

@ -110,7 +110,7 @@ class IrcMsg(object):
if ircutils.isUserHostmask(self.prefix): if ircutils.isUserHostmask(self.prefix):
(self.nick,self.user,self.host)=ircutils.splitHostmask(self.prefix) (self.nick,self.user,self.host)=ircutils.splitHostmask(self.prefix)
else: else:
(self.nick, self.user, self.host) = ('', '', '') (self.nick, self.user, self.host) = (self.prefix,)*3
self.args = tuple(self.args) self.args = tuple(self.args)
def __str__(self): def __str__(self):
@ -186,11 +186,11 @@ class IrcMsg(object):
def __setstate__(self, s): def __setstate__(self, s):
self.__init__(s) self.__init__(s)
try: ## try:
import _ircmsg ## import _ircmsg
IrcMsg = _ircmsg.IrcMsg ## IrcMsg = _ircmsg.IrcMsg
except: ## except:
pass ## pass
def isAction(msg): def isAction(msg):