mirror of
https://github.com/reactos/reactos.git
synced 2024-11-10 00:34:39 +00:00
d7b2077ed8
- made more and more easily extensible: * commands automatically loaded from plugins dlls * declarative and automatic command parameter parsing * common code moved to base classes - other fixes svn path=/trunk/; revision=33344
39 lines
682 B
C#
39 lines
682 B
C#
using System;
|
|
using TechBot.IRCLibrary;
|
|
|
|
namespace TechBot.Library
|
|
{
|
|
public abstract class MessageContext
|
|
{
|
|
}
|
|
|
|
public class ChannelMessageContext : MessageContext
|
|
{
|
|
private IrcChannel m_IrcChannel;
|
|
|
|
public IrcChannel Channel
|
|
{
|
|
get { return m_IrcChannel; }
|
|
}
|
|
|
|
public ChannelMessageContext(IrcChannel channel)
|
|
{
|
|
m_IrcChannel = channel;
|
|
}
|
|
}
|
|
|
|
public class UserMessageContext : MessageContext
|
|
{
|
|
private IrcUser m_IrcUser;
|
|
|
|
public IrcUser User
|
|
{
|
|
get { return m_IrcUser; }
|
|
}
|
|
|
|
public UserMessageContext(IrcUser user)
|
|
{
|
|
m_IrcUser = user;
|
|
}
|
|
}
|
|
}
|