Skip to content

Commit

Permalink
drop
Browse files Browse the repository at this point in the history
  • Loading branch information
Bob Mottram committed May 24, 2021
1 parent 3c1444e commit e71a978
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ So if you encounter a spam flood then you can allow only registered users on cha

If the spammer created a spam channel full of spam then you can remove it with:

/dropchannel #spamchannel
/drop #spamchannel


License
Expand Down
4 changes: 2 additions & 2 deletions miniircd
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,7 @@ class Client:

def drop_handler() -> None:
if len(arguments) < 1:
self.reply_461(b"DROPCHANNEL")
self.reply_461(b"DROP")
return
if not self.is_operator:
self.reply(b"481 %s :Permission denied" % (self.nickname))
Expand Down Expand Up @@ -1226,7 +1226,7 @@ class Client:
handler_table = {
b"AWAY": away_handler,
b"BANS": bans_handler,
b"DROPCHANNEL": drop_handler,
b"DROP": drop_handler,
b"FILTER": filter_handler,
b"FILTERS": filters_handler,
b"IDENTIFY": identify_handler,
Expand Down

0 comments on commit e71a978

Please sign in to comment.