S3T Posted June 22, 2007 Report Share Posted June 22, 2007 On *:input:#: { if (/ != $left($1,1)) { ^^ i dont understand that, if someone could help me please so you can still use /me ..ect.. without showing "/me" in the theme if ya get me.. lol Link to comment Share on other sites More sharing options...
Ozzy10 Posted June 22, 2007 Report Share Posted June 22, 2007 it means if / isnt the first character in the first word then do something that follows the { Link to comment Share on other sites More sharing options...
S3T Posted June 22, 2007 Author Report Share Posted June 22, 2007 (edited) On *:input:#: { if (/ != $left($1,1)) { echo $chan $me : $1- } say $1- where would haltdef go? Edited June 22, 2007 by S3T Link to comment Share on other sites More sharing options...
Guest X-Fusion Posted June 22, 2007 Report Share Posted June 22, 2007 on *:INPUT:*: { if (/* iswm $1) return else { privmsg $target $1- var %p $left($nick($chan,$me).pnick,1) if (%p isalnum) %p = $chr(160) if (#* iswm $target) echo $target [[ $+ %p $+ ]] $+ $me : $1- else echo $target $+ $me : $1- haltdef } } Haltdef ALWAYS goes at the end of an input or text code. As you can see from mine, it does a few things. It checks to see if the wildcard for / is there, which enables you to do two // for force entering commands into mIRC. It also sets a variable(%p) that checks for the users status (Owner, Host, Voice, Nonvoice) and sets it as a prefix for the actual echo. I find it easier to do that way then to keep doing ifs, elseifs to check for owner/host/etc status. Link to comment Share on other sites More sharing options...
S3T Posted June 22, 2007 Author Report Share Posted June 22, 2007 ahh ty matey Link to comment Share on other sites More sharing options...
S3T Posted June 22, 2007 Author Report Share Posted June 22, 2007 how do you get a channels topic ? is it $topic? or is it a Raw? Link to comment Share on other sites More sharing options...
Guest X-Fusion Posted June 22, 2007 Report Share Posted June 22, 2007 It's raw 332 I believe. Link to comment Share on other sites More sharing options...
S3T Posted June 22, 2007 Author Report Share Posted June 22, 2007 right, and how would i use it ? maybe to ( set %topic ) Link to comment Share on other sites More sharing options...
Guest X-Fusion Posted June 22, 2007 Report Share Posted June 22, 2007 raw 332:*:{ echo -a The topic of this channel is: $1- } Now, if $1- doesnt work, try $2-, because I believe the format is channel topic .. which may return #channel this is my topic. So, $2- would return just this is my topic. Hope this helps. Link to comment Share on other sites More sharing options...
S3T Posted June 22, 2007 Author Report Share Posted June 22, 2007 and that would come on when you join a channel ye? 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