mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-25 04:02:46 +01:00
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:
parent
2a4c2ea185
commit
2dd5a522d3
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user