Method: Cinch::Channel#sync_modes
- Defined in:
- lib/cinch/channel.rb
#sync_modes
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 |
# File 'lib/cinch/channel.rb', line 224 def sync_modes unsync :users unsync :bans unsync :modes unsync :owners if @bot.irc.isupport["WHOX"] @bot.irc.send "WHO #@name %acfhnru" else @bot.irc.send "WHO #@name" end @bot.irc.send "MODE #@name +b" # bans @bot.irc.send "MODE #@name" if @bot.irc.network.owner_list_mode @bot.irc.send "MODE #@name +#{@bot.irc.network.owner_list_mode}" else mark_as_synced :owners end end |