Changeset 5501
- Timestamp:
- 01/25/08 17:01:04 (10 months ago)
- Files:
-
- 1 modified
-
lang/ruby/misc/lig.rb (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/ruby/misc/lig.rb
r5491 r5501 104 104 @log.info "Client Option: #{@opts.join(", ")}" 105 105 @log.info "Client initialization is completed." 106 107 @user_info = @lingr.get_user_info[:response] 106 108 end 107 109 … … 139 141 140 142 if @channels[channel] 143 @channels[channel][:observer].kill 141 144 @lingr.exit_room(@channels[channel][:ticket]) 142 145 @channels.delete(channel) … … 155 158 :o_id => res["occupant_id"], 156 159 :hcounter => 0, 160 :observer => Thread.current, 157 161 } 158 162 first = true … … 166 170 next if m["id"].to_i <= info[:hcounter] 167 171 168 nick = m["nickname"]172 u_id = m["user_id"] 169 173 o_id = m["occupant_id"] 174 nick = m["nickname"].gsub(/\s+/, "") + "^#{u_id || "anon"}" 170 175 171 176 case m["type"] … … 179 184 # TOOD 180 185 when "system:enter" 181 @s << Message.new("#{nick}!#{o_id}@lingr.com", "JOIN", [chan]) unless nick == @nick186 @s << Message.new("#{nick}!#{o_id}@lingr.com", "JOIN", [chan]) unless u_id == @user_info["user_id"] 182 187 when "system:leave" 183 @s << Message.new("#{nick}!#{o_id}@lingr.com", "PART", [chan]) unless nick == @nick188 @s << Message.new("#{nick}!#{o_id}@lingr.com", "PART", [chan]) unless u_id == @user_info["user_id"] 184 189 when /system:/ 185 190 log m["text"]
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)