mirror of
https://github.com/reactos/reactos.git
synced 2024-08-20 18:35:32 +00:00
![Marc Piulachs](/assets/img/avatar_default.png)
- 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
40 lines
682 B
C#
40 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;
|
|
}
|
|
}
|
|
}
|