This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Search found 3735 matches

by caesar
Sun Aug 23, 2020 3:54 am
Forum: Scripting Help
Topic: question & exclaimation marks
Replies: 2
Views: 2938

What do you mean by filtering? If you mean to see if the string has any of the two then you got two options: string index or regexp . string first % set text "something ! in here" something ! in here % string first "!" $text 10 notice that this returns the position of the needle ...
by caesar
Thu Aug 20, 2020 11:16 am
Forum: Scripting Help
Topic: Kill 1st Gline 2nd
Replies: 32
Views: 17760

Don't know why you need to issue the whois since you already got the host in the flud proc, but why not move the unset in the flud:gline proc and with a if you can also make sure you don't punish innocent people.
by caesar
Thu Aug 13, 2020 12:32 am
Forum: Script Requests
Topic: "Visit" URL with command .pizza
Replies: 16
Views: 10131

Since he has if-else there no need for die actually.
by caesar
Fri Jul 31, 2020 2:45 pm
Forum: Scripting Help
Topic: doesnt set certain modes
Replies: 11
Views: 6647

Why do you bother with [matchattr [nick2hand $nick] o|o $chan] when: 1. you already got the user's account in the hand variable; 2. you should change the bind to bind pubm o|o directly and drop this part. What issues you got with massmode ? Apart it not seeing other flags apart than bov obviously? :)
by caesar
Wed Jul 29, 2020 2:17 pm
Forum: Scripting Help
Topic: wont kick nicks with chars like {}
Replies: 29
Views: 20484

@simo btw, since you added the max as 4th argument and got it set with a default value as 4 in this:

Code: Select all

proc stackKicks {chan kicklist reason {max 4}} {
there's no need to call the function like:

Code: Select all

stackKicks $chan $users $reason 4
if it's 4 as well. Or you plan to have a different value?
by caesar
Mon Jul 20, 2020 6:42 am
Forum: Script Requests
Topic: devoice on ban
Replies: 9
Views: 5045

Use continue instead of return inside a loop. And you should loop over the channel user list you should skip those that don't have voice in the first place and then do the matching and whatnot. Apart this I see this: if {[isbotnick $nick] || ![botisop $chan]} { return } and then again in the loop: i...
by caesar
Thu Jul 16, 2020 9:24 am
Forum: Script Requests
Topic: !vhost nick vhost.you.choose
Replies: 25
Views: 15257

global scan(chan) if {$chan != "$scan(chan)"} { putserv "NOTICE $tls_nick : Don't Use This Command Outside $scan(chan)" return 0 } @simo I see 3 issues with your code: - it should be 'global scan' (notice the lack of (chan) part) - there's no $tls_nick variable - the if {$chan !...
by caesar
Thu Jul 16, 2020 8:44 am
Forum: Scripting Help
Topic: ChanServ Akick
Replies: 4
Views: 4200

I saw this in another topic and wanted to ask you about it in there but forgot. Anyway, why do you use nick2hand if you already have the handle (the name of the user's account on the bot) set in hand variable when the pub-add-akick process is triggered? Right now that first if line will 'return 0' i...
by caesar
Thu Jul 16, 2020 3:55 am
Forum: Script Requests
Topic: Ban or gline/kline users connecting from IPs in the list.
Replies: 11
Views: 6841

If your server is on Linux I would go with a different approach: firewall. I would first create an IP set with ipset (replace blacklist with whatever you want): ipset create blacklist hash:net tell iptables to drop any connection from any IP that is in this blacklist set: iptables -I PREROUTING -t r...
by caesar
Fri Jul 10, 2020 5:54 am
Forum: Script Requests
Topic: !vhost nick vhost.you.choose
Replies: 25
Views: 15257

No problem, i figured it has to be something like that. :)
by caesar
Fri Jul 10, 2020 12:46 am
Forum: Script Requests
Topic: !vhost nick vhost.you.choose
Replies: 25
Views: 15257

What's with the $args[0] in there CrazyCat? TCL doesn't know that stuff. :) Anyway, here's something: bind pub mn !vhost change:vhost proc change:vhost {nick uhost hand chan text} { if {[scan $text {%s%s} user host] != 2} { puthelp "NOTICE $nick :Error, sytnax is: !vhost <nick> <vhost>" re...
by caesar
Fri Jul 10, 2020 12:43 am
Forum: Script Requests
Topic: Ban or gline/kline users connecting from IPs in the list.
Replies: 11
Views: 6841

Well, the role of the VPN is to make the person behind it be somewhat anonymous, so on your server it could look like someone nice or some prick that's in for some trouble. Until he/she takes the first action you can't really tell who's who. So, bottom line is that if you get too much abuse from the...
by caesar
Thu Jul 09, 2020 9:29 am
Forum: Script Requests
Topic: Ban or gline/kline users connecting from IPs in the list.
Replies: 11
Views: 6841

Ah, then CrazyCat is right. Should do this on the server end via a module or something than rely on a bot that reads a text file each time someone connects.

Can't you recommend some modules simo?
by caesar
Thu Jul 09, 2020 12:43 am
Forum: Script Requests
Topic: Ban or gline/kline users connecting from IPs in the list.
Replies: 11
Views: 6841

Post an example of an user connecting to the network to see the syntax.
by caesar
Fri Jun 26, 2020 1:13 pm
Forum: Script Requests
Topic: Bar Total Amount Tab
Replies: 4
Views: 3459

If you plan to extend this to other drinks as well, I suggest having a look at dict and have all the drinks like: dict set drinks "beer" 20 dict set drinks "vodka" 50 dict set drinks "tea" 5 and can get it's price with something like: [dict get $drinks $drink] for examp...