Ban Notification

Discussion about Perl, TCL or Python scripts and C/C++ plugins (using and writing them).

Ban Notification

Postby Sideshowbob » 05 Feb 2010 19:52

Does anybody have a Plugin that shows me which User is affected, when somebody sets a ban?

Like:
* Blub sets mode +b xxx@xxx.xx
* This ban affects User xxx and User xxxx
Sideshowbob
 
Posts: 5
Joined: 05 Feb 2010 19:43

Postby Sideshowbob » 16 Feb 2010 17:37

Can anybody help me?
Sideshowbob
 
Posts: 5
Joined: 05 Feb 2010 19:43

Postby 2Points » 18 Feb 2010 20:51

You might want to try this. Didn't put it through extensive testing since I do not have operator privileges for any channel worth mentioning (that is, with more than one user), but it should in theory work fine.
User avatar
2Points
 
Posts: 173
Joined: 21 Dec 2006 18:49

Postby LifeIsPain » 18 Feb 2010 23:04

problem is that this won't work for irc_raw_modes which Sideshowbob appears to be using. I'll admit, I had a version running soon after using a combination of a 5 line script and b0at's User Match script, but it didn't handle the 005 CHANMODES capture, so I kind of forgot about it.

So Sideshowbob, if you use the python script and it doesn't work, it may be because of the irc_raw_modes setting.

And 2points, you can have as many users as you want in your test channel ;)
Code: Select all
/recv :FakeUser1!user@blah.example.com JOIN #testchannel
/recv :FakeUser2!fake@pickles.example.net JOIN #testchannel
/recv :FakeUser3!user@blah.example.com JOIN #testchannel
/recv :OtherUser1!other@127.0.0.1 JOIN #testchannel
/recv :OtherUser2!~sam@127-0-0-1.localhost JOIN #testchannel
User avatar
LifeIsPain
 
Posts: 490
Joined: 25 Aug 2005 06:36

Postby 2Points » 19 Feb 2010 09:14

LifeIsPain wrote:And 2points, you can have as many users as you want in your test channel ;)

Thanks for pointing that out. I didn't know you could cheat IRC clients like that, but it appears logical enough. Talking to yourself gets a whole new dimension like this!
User avatar
2Points
 
Posts: 173
Joined: 21 Dec 2006 18:49

Postby Sideshowbob » 01 Mar 2010 19:14

Thanks for your script.

But when i load it xchat crashes...
I set raw modes on and off, but every time -> Crash


Any other solutions?
Sideshowbob
 
Posts: 5
Joined: 05 Feb 2010 19:43

Postby 2Points » 02 Mar 2010 13:12

It shouldn't outright crash X-Chat, and even less so on load. Check if you can load other Python scripts. If you can, provide some information on your OS, X-Chat and Python versions.
User avatar
2Points
 
Posts: 173
Joined: 21 Dec 2006 18:49

Postby Sideshowbob » 02 Mar 2010 19:27

Ok it crashes with all python scripts..

Ich have Xchat2 (silverex, newest) on Win7 64bit, and Python 3.1.1 installed

i deinstalled and installed python 3.1.1 new, now i get on startup: Can't find python26.dll on your PC.
Sideshowbob
 
Posts: 5
Joined: 05 Feb 2010 19:43

Postby 2Points » 02 Mar 2010 19:45

Well, I wouldn't know about any unofficial X-Chat builds, which might or might not work. In any case, you probably need Python 2.6, not 3, unless Silverex rolls his own plugins these days. This should do.
User avatar
2Points
 
Posts: 173
Joined: 21 Dec 2006 18:49

Postby Sideshowbob » 02 Mar 2010 20:14

yes is installed the 2.6 version. Then reinstalled xchat with python plugin, but same error.

I copied the python 26.dll from system32 in xchat folder, now theres no error on startup, but scripts cannot load.

maybe silverex cannot user python. I look for another client! thanks for your help
Sideshowbob
 
Posts: 5
Joined: 05 Feb 2010 19:43


Return to Scripts and Plugins

Who is online

Users browsing this forum: Bing [Bot] and 1 guest