Correctly support SETNAME being targetted at us
This commit is contained in:
parent
42f79d8f26
commit
ad166a7d0a
1 changed files with 8 additions and 2 deletions
|
@ -78,8 +78,14 @@ def chghost(event):
|
||||||
target.hostname = hostname
|
target.hostname = hostname
|
||||||
|
|
||||||
def setname(event):
|
def setname(event):
|
||||||
user = event["server"].get_user(event["prefix"].nickname)
|
nickname = event["prefix"].nickname
|
||||||
user.realname = event["args"][0]
|
realname = event["args"][0]
|
||||||
|
|
||||||
|
user = event["server"].get_user(nickname)
|
||||||
|
user.realname = realname
|
||||||
|
|
||||||
|
if event["server"].is_own_nickname(nickname):
|
||||||
|
event["server"].realname = realname
|
||||||
|
|
||||||
def account(events, event):
|
def account(events, event):
|
||||||
user = event["server"].get_user(event["prefix"].nickname)
|
user = event["server"].get_user(event["prefix"].nickname)
|
||||||
|
|
Loading…
Reference in a new issue