Modules/IRCEcho/ircChangeNick: Difference between revisions
Jump to navigation
Jump to search
(New page: __NOTOC__ {{ModuleFunction|IRCEcho}} Changes the name of the IRCConnection ==Syntax== <syntaxhighlight lang="lua"> function ircChangeNick ( IRCConnection irc, string newnick ) </syntaxhighlight> ===Required argume...) |
No edit summary |
||
Line 8: | Line 8: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
===Required arguments=== | ===Required arguments=== | ||
* '''irc:''' The IRCConnection | * '''irc:''' The IRCConnection | ||
* '''newnick:''' The new nickname | * '''newnick:''' The new nickname | ||
Latest revision as of 18:57, 13 January 2008
This function is provided by the external module IRCEcho. You must install this module to use this function. | |
Changes the name of the IRCConnection
Syntax
function ircChangeNick ( IRCConnection irc, string newnick )
Required arguments
- irc: The IRCConnection
- newnick: The new nickname
Example
Example 1: This example adds the command "ircname". That command can change the IRCConnection's name
function changeIrcName( thePlayer, command, newname ) ircChangeNick( pIRC, newname ) end addCommandHandler( "ircname", changeIrcName )