mirror of
https://github.com/Mikaela/Limnoria-doc.git
synced 2025-10-28 23:37:26 +01:00
955 B
955 B
Frequently Asked Questions
This section tries to cover all questions you may have as a plugin
developer. (If you are a user, check out the User FAQ <user-faq>
instead.)
Where can I find the user who called a command?
The msg object passed to all event method as well as
command methods is an supybot.ircmsgs.IrcMsg object, which stores the
content of the message, the nick and hostname of its author, etc. Check
the documentation of supybot.ircmsgs.IrcMsg to see all available
attributes.:w
Where can I find the hostname from a user's nick?
The irc object passed to all event method as well as
command methods is an supybot.irclib.Irc object, use irc.state.nickToHostmask <supybot.irclib.IrcState.nickToHostmask>