[email protected]
[Top] [All Lists]

[Tkabber] Autojoin to chatrooms

Subject: [Tkabber] Autojoin to chatrooms
From: Robert Cernansky
Date: Tue, 15 Mar 2005 20:05:48 +0100 CET
Hello,

I've searched for autojoin to conference rooms after login. I've found some
(http://lists.jabber.ru/pipermail/tkabber/2003-November/000244.html) but it
have not support for multiple logins (it tries to join to same conferences
for each login).

I've improved it slightly to support multiple logins. So if you want use
it, add this to your config.tcl:

proc join_conferences {connid} {
    foreach conf {[email protected]} {
        if {[string first $jlib::lib($connid,server) $conf] != -1} then {
            join_group $conf -nick HS -connection $connid
        }
    }
}
hook::add connected_hook join_conferences 1000


Regards,

Robert


-- 
Robert Cernansky
E-mail: [email protected]
Jabber: [email protected]

_______________________________________________
Tkabber mailing list
[email protected]
http://lists.jabber.ru/mailman/listinfo/tkabber

<Prev in Thread] Current Thread [Next in Thread>