smartirc4net-halfop.patch
| src/IrcCommands/IrcCommands.cs (copia locale) | ||
|---|---|---|
| 196 | 196 |
/// <param name="channel"></param> |
| 197 | 197 |
/// <param name="nickname"></param> |
| 198 | 198 |
/// <param name="priority"></param> |
| 199 |
public void Halfop(string channel, string nickname, Priority priority) |
|
| 200 |
{
|
|
| 201 |
WriteLine(Rfc2812.Mode(channel, "+h "+nickname), priority); |
|
| 202 |
} |
|
| 203 |
|
|
| 204 |
/// <summary> |
|
| 205 |
/// |
|
| 206 |
/// </summary> |
|
| 207 |
/// <param name="channel"></param> |
|
| 208 |
/// <param name="nickname"></param> |
|
| 209 |
public void Halfop(string channel, string nickname) |
|
| 210 |
{
|
|
| 211 |
WriteLine(Rfc2812.Mode(channel, "+h "+nickname)); |
|
| 212 |
} |
|
| 213 |
|
|
| 214 |
/// <summary> |
|
| 215 |
/// |
|
| 216 |
/// </summary> |
|
| 217 |
/// <param name="channel"></param> |
|
| 218 |
/// <param name="nickname"></param> |
|
| 219 |
/// <param name="priority"></param> |
|
| 220 |
public void Dehalfop(string channel, string nickname, Priority priority) |
|
| 221 |
{
|
|
| 222 |
WriteLine(Rfc2812.Mode(channel, "-h "+nickname), priority); |
|
| 223 |
} |
|
| 224 |
|
|
| 225 |
/// <summary> |
|
| 226 |
/// |
|
| 227 |
/// </summary> |
|
| 228 |
/// <param name="channel"></param> |
|
| 229 |
/// <param name="nickname"></param> |
|
| 230 |
public void Dehalfop(string channel, string nickname) |
|
| 231 |
{
|
|
| 232 |
WriteLine(Rfc2812.Mode(channel, "-h "+nickname)); |
|
| 233 |
} |
|
| 234 |
|
|
| 235 |
/// <summary> |
|
| 236 |
/// |
|
| 237 |
/// </summary> |
|
| 238 |
/// <param name="channel"></param> |
|
| 239 |
/// <param name="nickname"></param> |
|
| 240 |
/// <param name="priority"></param> |
|
| 199 | 241 |
public void Voice(string channel, string nickname, Priority priority) |
| 200 | 242 |
{
|
| 201 | 243 |
WriteLine(Rfc2812.Mode(channel, "+v "+nickname), priority); |
| src/IrcClient/NonRfcChannelUser.cs (copia locale) | ||
|---|---|---|
| 55 | 55 |
#endif |
| 56 | 56 |
|
| 57 | 57 |
/// <summary> |
| 58 |
/// |
|
| 58 |
/// Gets or sets the halfop flag of the user (+h) |
|
| 59 | 59 |
/// </summary> |
| 60 |
/// <value> </value> |
|
| 60 |
/// <remarks> |
|
| 61 |
/// only used with channel sync |
|
| 62 |
/// </remarks> |
|
| 61 | 63 |
public bool IsHalfop {
|
| 62 | 64 |
get {
|
| 63 | 65 |
return _IsHalfop; |
| src/IrcClient/WhoInfo.cs (copia locale) | ||
|---|---|---|
| 42 | 42 |
private string f_Realname; |
| 43 | 43 |
private bool f_IsAway; |
| 44 | 44 |
private bool f_IsOp; |
| 45 |
private bool f_IsHalfop; |
|
| 45 | 46 |
private bool f_IsVoice; |
| 46 | 47 |
private bool f_IsIrcOp; |
| 47 | 48 |
|
| ... | ... | |
| 99 | 100 |
} |
| 100 | 101 |
} |
| 101 | 102 |
|
| 103 |
public bool IsHalfop {
|
|
| 104 |
get {
|
|
| 105 |
return f_IsHalfop; |
|
| 106 |
} |
|
| 107 |
} |
|
| 108 |
|
|
| 102 | 109 |
public bool IsVoice {
|
| 103 | 110 |
get {
|
| 104 | 111 |
return f_IsVoice; |
| ... | ... | |
| 139 | 146 |
|
| 140 | 147 |
string usermode = data.RawMessageArray[8]; |
| 141 | 148 |
bool op = false; |
| 149 |
bool halfop = false; |
|
| 142 | 150 |
bool voice = false; |
| 143 | 151 |
bool ircop = false; |
| 144 | 152 |
bool away = false; |
| ... | ... | |
| 154 | 162 |
case '@': |
| 155 | 163 |
op = true; |
| 156 | 164 |
break; |
| 165 |
case '%': |
|
| 166 |
halfop = true; |
|
| 167 |
break; |
|
| 157 | 168 |
case '+': |
| 158 | 169 |
voice = true; |
| 159 | 170 |
break; |
| ... | ... | |
| 164 | 175 |
} |
| 165 | 176 |
whoInfo.f_IsAway = away; |
| 166 | 177 |
whoInfo.f_IsOp = op; |
| 178 |
whoInfo.f_IsHalfop = halfop; |
|
| 167 | 179 |
whoInfo.f_IsVoice = voice; |
| 168 | 180 |
whoInfo.f_IsIrcOp = ircop; |
| 169 | 181 |
|