|
Joined: Feb 2003
Posts: 3,432
Hoopy frood
|
OP
Hoopy frood
Joined: Feb 2003
Posts: 3,432 |
I using rawmode for info from the channel, op/deop is ok, there you can use if ($1 == op) , if ($1 == deop), how ever mode dosent return anything else then -mode .. so the only i see is -ts or -nt or what ever, any suggestions on how i can grab the mode without grab any of the other stuff comming from rawmode?
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
|
|
|
|
Joined: Jun 2007
Posts: 933
Hoopy frood
|
Hoopy frood
Joined: Jun 2007
Posts: 933 |
I'm not really clear on what you're trying to do... But if you do /mode $chan then raw 324 (usually) returns the active channel modes. Explain it a bit more?
|
|
|
|
Joined: May 2007
Posts: 89
Babel fish
|
Babel fish
Joined: May 2007
Posts: 89 |
As far as I know, in the event ' On RAWMODE ' the mode(s) being set are all found in the parm $1 and $2- contains the remaining/mandatory parms of the 'MODE' raw. When you say that you're using " if ($1 == op) " or " if ($1 == deop) " I can't understand that. The most we can do in this event is to use the identifier $mode(N).prop, which will return the total number of parms corresponding to the prop provided if N == 0, otherwise the parm accordingly. For example, let's say the following has been set SuperMan sets mode: +ovb-vv someone wowo chocapics*!*@* boom badaboom
Well, in the rawmode event, here's what can be collected: $1 == +ovb-vv $2- == someone wowo chocapics*!*@* boom badaboom $mode(0).op = 1 $mode(0).voice = 1 $mode(0).devoice = 2 $mode(0).ban = 1 $mode(1).op = someone $mode(1).voice = wowo $mode(1).devoice = boom $mode(2).devoice = badaboom $mode(1).ban = chocapics*!*@*
I hope that this brief explanation can clear things for you.
Last edited by TropNul; 25/06/07 07:09 PM.
tropnul
|
|
|
|
Joined: Feb 2003
Posts: 3,432
Hoopy frood
|
OP
Hoopy frood
Joined: Feb 2003
Posts: 3,432 |
thnx.. Do you also know what you can compare wallops with? a on text event, on notice even, on system event ? I know i can grab it with on *:wallops:*: { but since i coloring all text i want it to be colored right, like system text = op/deop/voice/kick/topic and more too, how ever i have no idea on what to set wallops with.
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
|
|
|
|
Joined: May 2007
Posts: 89
Babel fish
|
Babel fish
Joined: May 2007
Posts: 89 |
I think it's 'On SNOTICE'
tropnul
|
|
|
|
Joined: Feb 2003
Posts: 3,432
Hoopy frood
|
OP
Hoopy frood
Joined: Feb 2003
Posts: 3,432 |
On SNOTICE is server notice, not wallops on wallops grab wallops if usermode +w is used, but snotice will you recive even if you dont have //mode $me +w
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
|
|
|
|
Joined: Dec 2002
Posts: 3,138
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,138 |
I'm not entirely sure what you mean, but the colour for Wallops text has a specific setting in Alt+K and can be retrieved with $color(wallops)[color:red].dd[/color] (.dd being optional and returning a zero-padded result).
|
|
|
|
Joined: Feb 2003
Posts: 3,432
Hoopy frood
|
OP
Hoopy frood
Joined: Feb 2003
Posts: 3,432 |
I use $theme_color(wallops) , so i grab the colors from my theme, and whats the diffrence between wallops and servernotice?
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
|
|
|
|
Joined: Dec 2002
Posts: 3,138
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,138 |
whats the diffrence between wallops and servernotice? on wallops grab wallops if usermode +w is used, but snotice will you recive even if you dont have //mode $me +w From a protocol perspective, one's a NOTICE message and the other's a WALLOPS message. Notices are sent to specific targets, whilst wallops are sent to all +w users.
|
|
|
|
Joined: Feb 2003
Posts: 3,432
Hoopy frood
|
OP
Hoopy frood
Joined: Feb 2003
Posts: 3,432 |
thnx.. belived servernotice was sent to all people on the server
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
Hoopy frood
Joined: Aug 2004
Posts: 7,252 |
Based on my knowledge from UnrealIRCd: A server notice is sent FROM the server to whomever has access to those messages. There are different types of server notices, and not everyone can see all types.
|
|
|
|
Joined: Dec 2002
Posts: 3,138
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,138 |
A server notice is just a notice sent from the server (as opposed to a client). UnrealIRCd's particular implementation doesn't affect that.
The host/ident-related notices you get when connecting to a server are server notices, for example.
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
Hoopy frood
Joined: Aug 2004
Posts: 7,252 |
yes, I know that. I specified the IRCd that I'm familiar with, just in case other IRCd's send all server notices to everyone. Unreal only sends certain notices to certain people depending on what mode flags the person has and what the message is.
An example is the Client Connecting notice, IRCops can see these, but regular users cannot.
|
|
|
|
|