File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 31
31
32
32
ModuleHeader MOD_HEADER = {
33
33
"third/elmer" ,
34
- "2.1 " ,
34
+ "2.2 " ,
35
35
"Make people talk like Elmer" ,
36
36
"Valware" ,
37
37
"unrealircd-6" ,
@@ -100,6 +100,7 @@ MOD_INIT() {
100
100
mreq .serialize = elmer_serialize ;
101
101
mreq .unserialize = elmer_unserialize ;
102
102
mreq .sync = 1 ;
103
+ mreq .remote_write = 1 ;
103
104
mreq .type = MODDATATYPE_CLIENT ;
104
105
elmer_md = ModDataAdd (modinfo -> handle , mreq );
105
106
if (!elmer_md )
@@ -195,7 +196,7 @@ CMD_FUNC(ADDELMER)
195
196
if (!operclient && client == target ) // client is not oper but wants to elmer themselves
196
197
self ++ ;
197
198
198
- else if (!operclient )
199
+ if (!operclient && ! self )
199
200
{
200
201
sendnumeric (client , ERR_NOPRIVILEGES );
201
202
return ;
@@ -246,7 +247,7 @@ CMD_FUNC(DELELMER)
246
247
if (!operclient && client == target ) // client is not oper but wants to delmer themselves
247
248
self ++ ;
248
249
249
- else if (!operclient )
250
+ if (!operclient && ! self )
250
251
{
251
252
sendnumeric (client , ERR_NOPRIVILEGES );
252
253
return ;
You can’t perform that action at this time.
0 commit comments