Преглед на файлове

Merge pull request #1525 from slingamn/issue1523_halfop_topic

fix #1523
tags/v2.6.0-rc1
Shivaram Lingamneni преди 3 години
родител
ревизия
4c08bc9c49
No account linked to committer's email address
променени са 2 файла, в които са добавени 6 реда и са изтрити 6 реда
  1. 5
    5
      docs/MANUAL.md
  2. 1
    1
      irc/channel.go

+ 5
- 5
docs/MANUAL.md Целия файл

@@ -820,31 +820,31 @@ Users on a channel can have different permission levels, which are represented b
820 820
 
821 821
 This prefix means that the given user is the founder of the channel. For example, if `~dan` is on a channel it means that **dan** founded the channel. The 'founder' prefix only appears on channels that are registered.
822 822
 
823
-Founders are able to do anything, and have complete administrative control of the channel.
823
+Founders have complete administrative control of the channel. They can take any action and modify anyone else's privileges.
824 824
 
825 825
 ### +a (&) - Admin
826 826
 
827 827
 This prefix means that the given user is an admin on the channel. For example, if `&tom` is on a channel, then **tom** is an admin on it. The 'admin' prefix only appears on channels that are registered.
828 828
 
829
-Admins can do anything channel operators can do, and they also cannot get kicked by other chanops or admins.
829
+Admins have the same moderation privileges as channel operators (see below), but they can't be kicked or demoted by other admins or channel operators.
830 830
 
831 831
 ### +o (@) - Channel Operator
832 832
 
833 833
 This prefix means that the given user is an operator on the channel (chanop, for short). For example, if `@ruby` is on a channel, then **ruby** is an op.
834 834
 
835
-Chanops are the regular type of channel moderators. They can set the topic, change modes, ban/kick users, etc.
835
+Chanops are the default type of channel moderators. They can change the channel modes, ban/kick users, and add or remove chanop (or lower) privileges from users.
836 836
 
837 837
 ### +h (%) - Halfop
838 838
 
839 839
 This prefix means that the given user is a halfop on the channel (half-operator). For example, if `%twi` is on a channel, then **twi** is a halfop.
840 840
 
841
-Halfops can do some of what channel operators can do, and can't do other things. They can help moderate a channel.
841
+Halfops have some moderation privileges: they can kick users (but not ban them), change the channel topic, and grant voice privileges (see below).
842 842
 
843 843
 ### +v (+) - Voice
844 844
 
845 845
 This prefix means that the given user is 'voiced' on the channel. For example, if `+faust` is on a channel, then **faust** is voiced on that channel.
846 846
 
847
-Voiced users can speak when the channel has `+m - Moderated` mode enabled. They get no other special privs or any moderation abilities.
847
+Voiced users can speak when the channel has `+m` (moderated) mode enabled. They get no other special privileges or any moderation abilities.
848 848
 
849 849
 
850 850
 --------------------------------------------------------------------------------------------

+ 1
- 1
irc/channel.go Целия файл

@@ -1250,7 +1250,7 @@ func (channel *Channel) SetTopic(client *Client, topic string, rb *ResponseBuffe
1250 1250
 		return
1251 1251
 	}
1252 1252
 
1253
-	if channel.flags.HasMode(modes.OpOnlyTopic) && !channel.ClientIsAtLeast(client, modes.ChannelOperator) {
1253
+	if channel.flags.HasMode(modes.OpOnlyTopic) && !channel.ClientIsAtLeast(client, modes.Halfop) {
1254 1254
 		rb.Add(nil, client.server.name, ERR_CHANOPRIVSNEEDED, client.Nick(), channel.Name(), client.t("You're not a channel operator"))
1255 1255
 		return
1256 1256
 	}

Loading…
Отказ
Запис