All pastes #329254 Raw Edit

Miscellany

public text v1 · immutable
#329254 ·published 2007-01-26 16:29 UTC
rendered paste body
needrights 25
needtarget -sameroom

set newroomint [rest-raw 2]
set newroom [rest 2]
set oldroom [roomsget $u showname]

if { [string equal [string tolower $newroomint] [roomgetname $u]] } {
    error_isinroom $t
    return
}

set a [user_by_room [string tolower $newroomint]]
if { ! [string equal $a ""] } {
    if { [roomiget $a locked] == 1 && [getrights $u] < [sql cnum global_rights_min] } {
        error_roomlocked $newroom
        return
    }
}

sendroom -noig $t "[img info 1] <i>[yacetime] [colornick $u] wirft [colornick $t] in den Raum <b>$newroom</b>.</i>"
joinroom $t $newroomint
sendroom -noig $t "[img info 1] <i>[yacetime] [colornick $t] wurde von [colornick $u] in diesen Raum geworfen.</i>"

resetrights_std $t