Daniel_gr Posted January 20, 2008 Report Share Posted January 20, 2008 You were kicked from #by nick (Dead people can't speak. Bye Bye. (Banned for 15 sec to catch your breath)) You were kicked by nick (Dead people can't speak. Bye Bye. (Banned for 15 sec to catch your breath)) You were kicked from #by nick (*KABOOOOOOOOOM!* - The Bomb went Off - Tops: nicka nickb- 4 -- Flops: nick c - 31 -- You: 1 (Yep strange hae.. You got banned for 9 seconds)) i was wondering if there is a way to store the amount of time of the ban in a variable or timer. so you can have the script autorejoin the room when the ban expires these bans happen mostly when im away, but id like to be in the room fulltime also the bantime isnt set on the server but a bot bans and unbans you also(in case the bot lags you could get this message in status # unable to join channel (address is banned) in wich case you most likely have to start another timer i asume if anyone can help me with getting the time so i can use it in a timer. please help me thanks daniel Link to comment Share on other sites More sharing options...
Guest Travis Posted January 20, 2008 Report Share Posted January 20, 2008 The issue with your idea is that everyones ban message is different. Instead, why don't you attempt to rejoin the room every so often. Link to comment Share on other sites More sharing options...
Daniel_gr Posted January 20, 2008 Author Report Share Posted January 20, 2008 The issue with your idea is that everyones ban message is different. Instead, why don't you attempt to rejoin the room every so often. not really what i have in mind. seeing one ban is standard 15 secs, and the other varies from 9 secs to 3 mins that and i forgot how to check if the ban is me Link to comment Share on other sites More sharing options...
Jonny1 Posted January 20, 2008 Report Share Posted January 20, 2008 I think what Travis suggested would be easiest way to do it. just set a timer to try to join the room every few seconds and set it to start after you've been banned Link to comment Share on other sites More sharing options...
Guest Zantetsuken Posted January 20, 2008 Report Share Posted January 20, 2008 or like ozzy would say... dont get banned Link to comment Share on other sites More sharing options...
The Gate Keeper Posted January 20, 2008 Report Share Posted January 20, 2008 (edited) based on "MSN Servers", the text "Access Ban set for ... minutes" was actually manually added to the kick message. This means that it could be easily changed, and especially with bots/scripts, they didn't need to tell you that you were banned for a specific time, they just did so. If you are using IRCx related chat servers, when they use /access, they can set the ban time, you will most likely not see the ban being set, even if you are owner of the room. Pretty much you would need to use these lines of code... on *:KICK:#: { if ($knick == $me) { .timerkicked $+ $chan 0 15 join $chan } } on me:*:JOIN:#: .timerkicked $+ $chan off Edited January 21, 2008 by The Gate Keeper Link to comment Share on other sites More sharing options...
Daniel_gr Posted January 21, 2008 Author Report Share Posted January 21, 2008 based on "MSN Servers", the text "Access Ban set for ... minutes" was actually manually added to the kick message. This means that it could be easily changed, and especially with bots/scripts, they didn't need to tell you that you were banned for a specific time, they just did so. If you are using IRCx related chat servers, when they use /access, they can set the ban time, you will most likely not see the ban being set, even if you are owner of the room. Pretty much you would need to use these lines of code... on *:KICK:#: { if ($knick == $me) { .timerkicked $+ $chan 0 15 join $($chan,0) } } on me:*:JOIN:#: .timerkicked $+ $chan off the server is actually an unreal ircd server. tried your code non the less. but it doesnt seem to store the channel name the error i get is: * /join: insufficient parameters Link to comment Share on other sites More sharing options...
Guest Travis Posted January 21, 2008 Report Share Posted January 21, 2008 If the channel name starts with % mIRC will think it is a variable and not seeing it in the variable list it will consider it an error. Two options, set the channel as a variable. (this is what I do) /set $chan $chan This way when mIRC looks for the channel name in the variable list it returns the channel name. Other option is the old way. Remove the % when sending information, add the % when you need it. Link to comment Share on other sites More sharing options...
Guest X-Fusion Posted January 21, 2008 Report Share Posted January 21, 2008 It's IRCd, it wont start with %. Link to comment Share on other sites More sharing options...
The Gate Keeper Posted January 21, 2008 Report Share Posted January 21, 2008 editted my code to suite IRCd. If i knew it was looked and saw IRCd, i wouldn't be trying work arounds . But the code i have above should work now. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now