]> jfr.im git - irc/quakenet/snircd-patchqueue.git/commitdiff
noopername: add protocol violation when we should have gotten an opername, but did not
authorwiebe <redacted>
Tue, 20 Apr 2010 12:55:34 +0000 (14:55 +0200)
committerwiebe <redacted>
Tue, 20 Apr 2010 12:55:34 +0000 (14:55 +0200)
noopername.patch [new file with mode: 0644]
series

diff --git a/noopername.patch b/noopername.patch
new file mode 100644 (file)
index 0000000..3e45e40
--- /dev/null
@@ -0,0 +1,15 @@
+add protocol violation when we should have gotten an opername, but did not
+
+diff -r 495100bee360 ircd/s_user.c
+--- a/ircd/s_user.c
++++ b/ircd/s_user.c
+@@ -1293,6 +1293,9 @@
+                 }
+               }
+             }
++            /* no opername? */
++            else
++              protocol_violation(cptr, "Received mode +o for user %s without opername", cli_name(sptr));
+           }
+         } else {
+           ClrFlag(sptr, FLAG_OPER);
diff --git a/series b/series
index 2d3a8fae3060f57049c9803d2c06a32554a43764..9e338240687d75b50ef8012fc07582b4c4f2a6bd 100644 (file)
--- a/series
+++ b/series
@@ -9,6 +9,7 @@ badchanlocalkick.patch
 nserverflag.patch
 enforceinvisible.patch
 snircdumodescheckisanoper.patch
+noopername.patch
 minoplevel.patch
 ischannelservice.patch
 invalidatebanssethost.patch