Skip to content
General IRCd

onjoin help

A TG007 community discussion started by W_A_A_S.

Discussion 6 posts
Page 1 of 1
Open
Topic #2847 · 6 published posts · 1,619 views

hi

 

i am running a irc channel with mirc

 

but i wanne make a onjoin message and within that somethign to change the room limit go +1 when somebody joins and -1 when somebody parts.

 

who can help me?

 

-= { yes i know its a noob qeustion } =-

 

grrtz me

i don't get what you mean with the on join message, but to set one, you would type:

/prop #channel ONJOIN message

 

for the dynamic room limit, try this.

on *:join:#channel:{
mode # +l $calc($nick(#,0) + 1)
}
on *:part:#channel:{
mode # +l $calc($nick(#,0) - 1)
}

Edited Feb 14, 2005 12:24 AM by xRhysx

on @*:join:#:{ mode $chan +l $calc($nick($chan,0) + 1) }
on @!*:part:#:{ mode $chan +l $calc($nick($chan,0) + 1) }
on !*:quit:{
 var %i = 1
 while ($comchan($nick,%i)) {
   if ($comchan($nick,%i).op) { mode $comchan($nick,%i) +l $calc($nick($comchan($nick,%i),0) + 1) }
   inc %i
 }
}
on @*:kick:#:{
 if ($knick != $me) { mode $chan +l $calc($nick($chan,0) + 1) }
}

Edited Apr 8, 2005 3:54 PM by tidy trax
i don't get what you mean with the on join message, but to set one, you would type:

/prop #channel ONJOIN message

 

for the dynamic room limit, try this.

on *:join:#channel:{
mode # +l $calc($nick(#,0) + 1)
}
on *:part:#channel:{
mode # +l $calc($nick(#,0) - 1)
}

Just so you know... /prop doesnt work on IRCD thats an IRCX command

 

us3rX

(Tye's)

Ftr, if someone leaves the room (kick, quit, etc) wouldn't the room limit need to go down instead of up?

 

(Tye's)

Ftr, if someone leaves the room (kick, quit, etc) wouldn't the room limit need to go down instead of up?

It does go down.

It sets the channel limit to <number of users> + 1, that is still going down as a user has just left.