mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +01:00
Made it copy the list of messages when <nick> is used.
This commit is contained in:
parent
017ddb198d
commit
45044c525d
@ -224,15 +224,16 @@ class MiscCommands(callbacks.Privmsg):
|
|||||||
<nick> instead of the person sending this message.
|
<nick> instead of the person sending this message.
|
||||||
"""
|
"""
|
||||||
nick = privmsgs.getArgs(args, needed=0, optional=1)
|
nick = privmsgs.getArgs(args, needed=0, optional=1)
|
||||||
|
userHostmask = msg.prefix.split('!', 1)[1]
|
||||||
if nick:
|
if nick:
|
||||||
try:
|
try:
|
||||||
hostmask = irc.state.nickToHostmask(nick)
|
hostmask = irc.state.nickToHostmask(nick)
|
||||||
userHostmask = hostmask.split('!', 1)[1]
|
otherUserHostmask = hostmask.split('!', 1)[1]
|
||||||
|
L = self._mores[otherUserHostmask][:]
|
||||||
|
self._mores[userHostmask] = L
|
||||||
except KeyError:
|
except KeyError:
|
||||||
irc.error(msg, 'Sorry, I can\'t find a hostmask for %s' % nick)
|
irc.error(msg, 'Sorry, I can\'t find a hostmask for %s' % nick)
|
||||||
return
|
return
|
||||||
else:
|
|
||||||
userHostmask = msg.prefix.split('!', 1)[1]
|
|
||||||
try:
|
try:
|
||||||
L = self._mores[userHostmask]
|
L = self._mores[userHostmask]
|
||||||
chunk = L.pop()
|
chunk = L.pop()
|
||||||
|
Loading…
Reference in New Issue
Block a user