Event: OnNick(user,newnick,handle)
Syntax: OnNick(object user,string newnick,object handle)
Event arguments
user- person who has changed his nickname
newnick- the new nickname
handle- the output handler

This event is triggered when you or another a user change his nickname.
Note: You can get the host and the user of the person who has changed his nickname by using user.Host and user.User. To edit the output text use ole.SetOutput(text,handle);. To delete the output text use ole.DelOutput(handle);

Example:
function OnNick(nick,newnick)
{
//if nick is your buddy add his new nickname to your buddy list
if(ole.IsBuddy(nick)){ ole.AddBuddy(newnick); }
}


Home|Scripting